Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from rstoenescu/patch-2
Browse files Browse the repository at this point in the history
Don't overload Vue with unnecessary props
  • Loading branch information
sam3d authored Aug 11, 2018
2 parents 35916ed + 0d0e8f2 commit b43d478
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down

0 comments on commit b43d478

Please sign in to comment.