diff --git a/dist/fix/fix.compact.ie.js b/dist/fix/fix.compact.ie.js index 152f94f89..ab949b5bd 100644 --- a/dist/fix/fix.compact.ie.js +++ b/dist/fix/fix.compact.ie.js @@ -93,15 +93,15 @@ } } - _.each(["populate", "addItems", "prependItems"], function (name) { - var old = BI.Loader.prototype[name]; - BI.Loader.prototype[name] = function () { - BI.Widget.pushContext(this); - var result = old.apply(this, arguments); - BI.Widget.popContext(); - return result; - }; - }); + // _.each(["populate", "addItems", "prependItems"], function (name) { + // var old = BI.Loader.prototype[name]; + // BI.Loader.prototype[name] = function () { + // BI.Widget.pushContext(this); + // var result = old.apply(this, arguments); + // BI.Widget.popContext(); + // return result; + // }; + // }); function createStore () { var needPop = false; diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 1fa5e2972..8b635c0c1 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -97,19 +97,19 @@ } } - _.each(["populate", "addItems", "prependItems"], function (name) { - var old = BI.Loader.prototype[name]; - BI.Loader.prototype[name] = function () { - BI.Widget.pushContext(this); - try { - var result = old.apply(this, arguments); - } catch (e) { - console.error(e); - } - BI.Widget.popContext(); - return result; - }; - }); + // _.each(["populate", "addItems", "prependItems"], function (name) { + // var old = BI.Loader.prototype[name]; + // BI.Loader.prototype[name] = function () { + // BI.Widget.pushContext(this); + // try { + // var result = old.apply(this, arguments); + // } catch (e) { + // console.error(e); + // } + // BI.Widget.popContext(); + // return result; + // }; + // }); function createStore () { var needPop = false; diff --git a/examples/loader-context.html b/examples/loader-context.html new file mode 100644 index 000000000..72695cc9f --- /dev/null +++ b/examples/loader-context.html @@ -0,0 +1,124 @@ + +
+ +