Browse Source

Pull request #3679: 无JIRA任务,优化object对象的un方法

Merge in VISUAL/fineui from ~FANGLEI/fineui:master to master

* commit '50d43612d4d71a190c4adb2b382fa3c7dd92f882':
  无JIRA任务,优化object对象的un方法
research/test
fanglei-方磊 1 year ago committed by drew-倪梦威
parent
commit
b34a478c0f
  1. 2
      packages/fineui/src/core/3.ob.js

2
packages/fineui/src/core/3.ob.js

@ -155,7 +155,7 @@ export class OB {
eventName = eventName.toLowerCase(); eventName = eventName.toLowerCase();
/* alex:如果fn是null,就是把eventName上面所有方法都un掉*/ /* alex:如果fn是null,就是把eventName上面所有方法都un掉*/
if (fn === null) { if (!fn) {
delete this._getEvents()[eventName]; delete this._getEvents()[eventName];
} else { } else {
const fns = this._getEvents()[eventName]; const fns = this._getEvents()[eventName];

Loading…
Cancel
Save