|
|
|
@ -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 () { |
|
|
|
|