Browse Source

Pull request #1924: 无JIRA任务 整理代码

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

* commit '9bbe7bef914b070fa0b0500726fe0865cb5c8ca8':
  整理代码
es6
guy 4 years ago
parent
commit
abe05fc203
  1. 15
      src/core/4.widget.js

15
src/core/4.widget.js

@ -8,13 +8,18 @@
!(function () { !(function () {
function callLifeHook (self, life) { function callLifeHook (self, life) {
var hook = self.options[life] || self[life]; var hooks = [], hook;
hook = self[life];
if (hook) { if (hook) {
var hooks = BI.isArray(hook) ? hook : [hook]; hooks = hooks.concat(BI.isArray(hook) ? hook : [hook]);
BI.each(hooks, function (i, hook) { }
hook.call(self); hook = self.options[life];
}); if (hook) {
hooks = hooks.concat(BI.isArray(hook) ? hook : [hook]);
} }
BI.each(hooks, function (i, hook) {
hook.call(self);
});
} }
BI.Widget = BI.Widget || BI.inherit(BI.OB, { BI.Widget = BI.Widget || BI.inherit(BI.OB, {

Loading…
Cancel
Save