Browse Source

无jira任务 改下变量名

es6
imp 3 years ago
parent
commit
662c3f9ac3
  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