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