diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 3f791a0f2..4e010aa21 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -96,13 +96,15 @@ return result; }; - var populate = BI.Loader.prototype.populate; - BI.Loader.prototype.populate = function () { - pushContext(this); - var result = populate.apply(this, arguments); - popContext(); - return result; - }; + _.each(["populate", "addItems", "prependItems"], function (name) { + var old = BI.Loader.prototype[name]; + BI.Loader.prototype[name] = function () { + pushContext(this); + var result = old.apply(this, arguments); + popContext(); + return result; + }; + }); var _init = BI.Widget.prototype._init; BI.Widget.prototype._init = function () {