diff --git a/src/core/4.widget.js b/src/core/4.widget.js index c56b8a30eb..b885100ffa 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -170,9 +170,9 @@ this.element = BI.Widget._renderEngine.createElement(this); } this.element._isWidget = true; - // var widgets = this.element.data("_Widgets") || []; - // widgets.push(this); - // this.element.data("_Widgets", widgets); + var widgets = this.element.data("__widgets") || []; + widgets.push(this); + this.element.data("__widgets", widgets); this._initCurrent(); }, diff --git a/src/core/element2Snabbdom.js b/src/core/element2Snabbdom.js index b568c2a7b3..f4efcaaa03 100644 --- a/src/core/element2Snabbdom.js +++ b/src/core/element2Snabbdom.js @@ -31,7 +31,7 @@ on: on, hook: { create: function () { - BI.each(BI.Widget._renderEngine.createElement(parentNode).data("_Widgets"), function (i, w) { + BI.each(BI.Widget._renderEngine.createElement(parentNode).data("__widgets"), function (i, w) { w.element = BI.Widget._renderEngine.createElement(vnode.elm); }); }