Browse Source

Pull request #2497: REPORT-67093 : 改变事件内部this指向

Merge in VISUAL/fineui from ~AUSTIN.DUAN/fineui:master to master

* commit '92945fbb104666e36ad4b06996d48ea5e8597030':
  REPORT-67093 fix: 修复工具栏按钮置灰问题,需要改变action内部的this指向
es6
Austin.Duan 3 years ago
parent
commit
85b6302d58
  1. 2
      src/core/3.ob.js

2
src/core/3.ob.js

@ -67,7 +67,7 @@
self.on(eventName, lis);
return;
}
(lis.target ? lis.target : self)[lis.once ? "once" : "on"](lis.eventName, lis.action);
(lis.target ? lis.target : self)[lis.once ? "once" : "on"](lis.eventName, _.bind(lis.action, self));
});
delete this.options.listeners;
}

Loading…
Cancel
Save