Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit f45d6ba

Browse files
author
Steffan
committed
remove „init“ from global mixin
1 parent b58eea9 commit f45d6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Events.install = function (Vue, options = {}) {
2828
Vue.config.optionMergeStrategies.events = mergeEvents;
2929

3030
// add mixin to parse "events" from component options
31-
Vue.mixin(Number(Vue.version[0]) < 2 ? {init: initEvents} : {beforeCreate: initEvents});
31+
Vue.mixin({beforeCreate: initEvents});
3232
};
3333

3434
function mergeEvents(parentVal, childVal) {

0 commit comments

Comments
 (0)