From 0d0e8f2e76bd4fe8c6bb77259988b4209fc64b0f Mon Sep 17 00:00:00 2001 From: Razvan Stoenescu Date: Mon, 16 Jan 2017 20:11:41 +0200 Subject: [PATCH] Don't overload Vue with unnecessary props --- src/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 0d1fbff5..35025dea 100644 --- a/src/index.js +++ b/src/index.js @@ -49,13 +49,7 @@ export default { }; Vue.mixin({ - // Vue v1.x - beforeCompile: addListeners, - - // Vue v2.x - beforeCreate: addListeners, - - + [Vue.version.indexOf('2') === 0 ? 'beforeCreate' : 'beforeCompile']: addListeners, beforeDestroy: removeListeners });