Browse Source

Pull request #2237: 无jira任务 改下变量名

Merge in VISUAL/fineui from ~IMP/fineui_fui:master to master

* commit 'a98de291d89829601cd9e8de950d8caeaec1f835':
  无jira任务 改下变量名
es6
imp 3 years ago
parent
commit
d304d293d8
  1. 2
      dist/fix/fix.compact.js
  2. 6
      src/core/4.widget.js

2
dist/fix/fix.compact.js vendored

@ -183,7 +183,7 @@
delete this.__cacheStore;
};
_.each(["_rendered", "_mount", "__afterMount"], function (name) {
_.each(["_afterRender", "_mount", "__afterMount"], function (name) {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);

6
src/core/4.widget.js

@ -128,7 +128,7 @@
}
renderCallbackCalled = true;
self._render();
self._rendered();
self._afterRender();
self.__async = false;
}
@ -137,7 +137,7 @@
(self.options.beforeRender || self.beforeRender).call(self, render);
} else {
self._render();
self._rendered();
self._afterRender();
}
}
@ -149,7 +149,7 @@
}
},
_rendered: function () {
_afterRender: function () {
pushTarget(this);
this.__async === true && this._isMounted && callLifeHook(this, "beforeMount");
this._mount();

Loading…
Cancel
Save