Browse Source

无jira任务,BI.Loader的context问题.

es6
DESKTOP-49I29QK\zsmj 7 years ago
parent
commit
c3597428f6
  1. 8
      dist/fix/fix.compact.js

8
dist/fix/fix.compact.js vendored

@ -96,13 +96,15 @@
return result; return result;
}; };
var populate = BI.Loader.prototype.populate; _.each(["populate", "addItems", "prependItems"], function (name) {
BI.Loader.prototype.populate = function () { var old = BI.Loader.prototype[name];
BI.Loader.prototype[name] = function () {
pushContext(this); pushContext(this);
var result = populate.apply(this, arguments); var result = old.apply(this, arguments);
popContext(); popContext();
return result; return result;
}; };
});
var _init = BI.Widget.prototype._init; var _init = BI.Widget.prototype._init;
BI.Widget.prototype._init = function () { BI.Widget.prototype._init = function () {

Loading…
Cancel
Save