Skip to content

Commit

Permalink
feat: support disable delegate events, ksc-fe/kpc#353
Browse files Browse the repository at this point in the history
  • Loading branch information
Javey committed Nov 25, 2019
1 parent 844dea8 commit 5176f16
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ var possibleConstructorReturn = function (self, call) {
var _Intact$Vdt$miss = Intact.Vdt.miss;
var h = _Intact$Vdt$miss.h;
var hooks = _Intact$Vdt$miss.hooks;
var config = _Intact$Vdt$miss.config;
var _Intact$utils = Intact.utils;
var _get = _Intact$utils.get;
var _set = _Intact$utils.set;
Expand Down Expand Up @@ -138,6 +139,11 @@ if (hooks) {
};
}

// disable delegate events
if (config) {
config.disableDelegate = true;
}

// for get $parent
Vue.mixin({
beforeCreate: function beforeCreate() {
Expand Down
6 changes: 6 additions & 0 deletions dist/intact.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ var possibleConstructorReturn = function (self, call) {
var _Intact$Vdt$miss = Intact.Vdt.miss;
var h = _Intact$Vdt$miss.h;
var hooks = _Intact$Vdt$miss.hooks;
var config = _Intact$Vdt$miss.config;
var _Intact$utils = Intact.utils;
var _get = _Intact$utils.get;
var _set = _Intact$utils.set;
Expand Down Expand Up @@ -140,6 +141,11 @@ if (hooks) {
};
}

// disable delegate events
if (config) {
config.disableDelegate = true;
}

// for get $parent
Vue.mixin({
beforeCreate: function beforeCreate() {
Expand Down
Loading

0 comments on commit 5176f16

Please sign in to comment.