|
|
@ -40,7 +40,7 @@ |
|
|
|
cls: "", |
|
|
|
cls: "", |
|
|
|
css: null, |
|
|
|
css: null, |
|
|
|
|
|
|
|
|
|
|
|
vdom: false, |
|
|
|
vdom: false |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -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(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -237,7 +237,7 @@ |
|
|
|
element.empty(); |
|
|
|
element.empty(); |
|
|
|
BI.each(BI.jQuery(self.vnode.elm).children(), function (i, node) { |
|
|
|
BI.each(BI.jQuery(self.vnode.elm).children(), function (i, node) { |
|
|
|
element.append(node); |
|
|
|
element.append(node); |
|
|
|
}) |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
BI.each(els, function (i, el) { |
|
|
|
BI.each(els, function (i, el) { |
|
|
|
if (el) { |
|
|
|
if (el) { |
|
|
@ -268,7 +268,7 @@ |
|
|
|
BI.each(els, function (i, el) { |
|
|
|
BI.each(els, function (i, el) { |
|
|
|
if (el) { |
|
|
|
if (el) { |
|
|
|
var w = BI._lazyCreateWidget(el, { |
|
|
|
var w = BI._lazyCreateWidget(el, { |
|
|
|
element: container, |
|
|
|
element: container |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.addWidget(w); |
|
|
|
self.addWidget(w); |
|
|
|
} |
|
|
|
} |
|
|
@ -300,8 +300,10 @@ |
|
|
|
this._isMounted = true; |
|
|
|
this._isMounted = true; |
|
|
|
for (var key in this._children) { |
|
|
|
for (var key in this._children) { |
|
|
|
var child = this._children[key]; |
|
|
|
var child = this._children[key]; |
|
|
|
!self.isEnabled() && child._setEnable(false); |
|
|
|
if (layer === 0) { |
|
|
|
self.isValid() && child._setValid(false); |
|
|
|
!self.isEnabled() && child._setEnable(false); |
|
|
|
|
|
|
|
!self.isValid() && child._setValid(false); |
|
|
|
|
|
|
|
} |
|
|
|
child._mount && child._mount(deep ? force : false, deep, lifeHook, predicate, layer + 1); |
|
|
|
child._mount && child._mount(deep ? force : false, deep, lifeHook, predicate, layer + 1); |
|
|
|
} |
|
|
|
} |
|
|
|
this._mountChildren && this._mountChildren(); |
|
|
|
this._mountChildren && this._mountChildren(); |
|
|
|