From c3597428f6e0d6485fad0563f2213ca7aed8d8ae Mon Sep 17 00:00:00 2001 From: "DESKTOP-49I29QK\\zsmj" Date: Thu, 21 Jun 2018 15:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1,BI.Loader?= =?UTF-8?q?=E7=9A=84context=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.compact.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 () {