guy 3 years ago
parent
commit
ef718ad88a
  1. 6
      src/core/4.widget.js
  2. 2
      src/core/element2Snabbdom.js

6
src/core/4.widget.js

@ -170,9 +170,9 @@
this.element = BI.Widget._renderEngine.createElement(this); this.element = BI.Widget._renderEngine.createElement(this);
} }
this.element._isWidget = true; this.element._isWidget = true;
// var widgets = this.element.data("_Widgets") || []; var widgets = this.element.data("__widgets") || [];
// widgets.push(this); widgets.push(this);
// this.element.data("_Widgets", widgets); this.element.data("__widgets", widgets);
this._initCurrent(); this._initCurrent();
}, },

2
src/core/element2Snabbdom.js

@ -31,7 +31,7 @@
on: on, on: on,
hook: { hook: {
create: function () { 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); w.element = BI.Widget._renderEngine.createElement(vnode.elm);
}); });
} }

Loading…
Cancel
Save