|
|
@ -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]; |
|
|
|
pushContext(this); |
|
|
|
BI.Loader.prototype[name] = function () { |
|
|
|
var result = populate.apply(this, arguments); |
|
|
|
pushContext(this); |
|
|
|
popContext(); |
|
|
|
var result = old.apply(this, arguments); |
|
|
|
return result; |
|
|
|
popContext(); |
|
|
|
}; |
|
|
|
return result; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var _init = BI.Widget.prototype._init; |
|
|
|
var _init = BI.Widget.prototype._init; |
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|