Browse Source

REPORT-43571 fix: 生命周期缺失上下文

master
iapyang 4 years ago
parent
commit
e5c614bc2b
  1. 2
      src/core/widget.js

2
src/core/widget.js

@ -11,7 +11,7 @@
if (self[life]) { if (self[life]) {
var hooks = BI.isArray(self[life]) ? self[life] : [self[life]]; var hooks = BI.isArray(self[life]) ? self[life] : [self[life]];
BI.each(hooks, function (i, hook) { BI.each(hooks, function (i, hook) {
hook(); hook.apply(self);
}); });
} }
} }

Loading…
Cancel
Save