diff --git a/dist/bundle.js b/dist/bundle.js index 8e5f37c84..579e7e2d0 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -19435,10 +19435,16 @@ if (!window.BI) { return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); }, - createWidgets: function (items, options) { + createWidgets: function (items, options, context) { if (!BI.isArray(items)) { throw new Error("cannot create Widgets"); } + if (BI.isWidget(options)) { + context = options; + options = {}; + } else { + options || (options = {}); + } return BI.map(BI.flatten(items), function (i, item) { return BI.createWidget(item, BI.deepClone(options)); }); @@ -35369,6 +35375,16 @@ Data.Source = BISource = { return result; }; + $(function () { + var populate = BI.Loader.prototype.populate; + BI.Loader.prototype.populate = function () { + pushContext(this); + var result = populate.apply(this, arguments); + popContext(); + return result; + }; + }); + var _init = BI.Widget.prototype._init; BI.Widget.prototype._init = function () { var self = this; diff --git a/dist/core.js b/dist/core.js index ac2f4a5bc..2b2948c7a 100644 --- a/dist/core.js +++ b/dist/core.js @@ -19435,10 +19435,16 @@ if (!window.BI) { return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); }, - createWidgets: function (items, options) { + createWidgets: function (items, options, context) { if (!BI.isArray(items)) { throw new Error("cannot create Widgets"); } + if (BI.isWidget(options)) { + context = options; + options = {}; + } else { + options || (options = {}); + } return BI.map(BI.flatten(items), function (i, item) { return BI.createWidget(item, BI.deepClone(options)); }); diff --git a/utils/utils.js b/utils/utils.js index acdce716a..1ee5e281f 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -10643,10 +10643,16 @@ if (!window.BI) { return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); }, - createWidgets: function (items, options) { + createWidgets: function (items, options, context) { if (!BI.isArray(items)) { throw new Error("cannot create Widgets"); } + if (BI.isWidget(options)) { + context = options; + options = {}; + } else { + options || (options = {}); + } return BI.map(BI.flatten(items), function (i, item) { return BI.createWidget(item, BI.deepClone(options)); });