|
|
|
@ -21399,20 +21399,14 @@ _.extend(BI.OB.prototype, {
|
|
|
|
|
this._initElementHeight(); |
|
|
|
|
this._initVisual(); |
|
|
|
|
this._initState(); |
|
|
|
|
if (this.isVisible()) { |
|
|
|
|
this.rendered = true; |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__asking = true; |
|
|
|
|
this.beforeInit(BI.bind(this._render, this)); |
|
|
|
|
if (this.__asking === true) { |
|
|
|
|
this.__async = true; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this._render(); |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__asking = true; |
|
|
|
|
this.beforeInit(BI.bind(this._render, this)); |
|
|
|
|
if (this.__asking === true) { |
|
|
|
|
this.__async = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this._isRoot) { |
|
|
|
|
this._mount(); |
|
|
|
|
} else { |
|
|
|
|
this._render(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -21525,7 +21519,7 @@ _.extend(BI.OB.prototype, {
|
|
|
|
|
_mount: function () { |
|
|
|
|
var self = this; |
|
|
|
|
var isMounted = this._isMounted; |
|
|
|
|
if (this._isMounting || isMounted || !this.isVisible() || this.__asking === true) { |
|
|
|
|
if (isMounted || this.__asking === true) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this._isRoot === true) { |
|
|
|
@ -21536,19 +21530,6 @@ _.extend(BI.OB.prototype, {
|
|
|
|
|
if (!isMounted) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this._isMounting = true; |
|
|
|
|
if (!this.rendered) { |
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
this.__asking = true; |
|
|
|
|
this.beforeInit(BI.bind(this._render, this)); |
|
|
|
|
if (this.__asking === true) { |
|
|
|
|
this.__async = true; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this._render(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.beforeMount && this.beforeMount(); |
|
|
|
|
this._isMounted = true; |
|
|
|
|
!lazy && this._mountChildren && this._mountChildren(); |
|
|
|
@ -21559,7 +21540,6 @@ _.extend(BI.OB.prototype, {
|
|
|
|
|
}); |
|
|
|
|
lazy && this._mountChildren && this._mountChildren(); |
|
|
|
|
this.mounted && this.mounted(); |
|
|
|
|
this._isMounting = false; |
|
|
|
|
return true; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -81382,9 +81362,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
|
|
|
|
|
function createStore() { |
|
|
|
|
var needPop = false; |
|
|
|
|
if (!this._storeCreated && window.Fix && this._store && this.isVisible()) { |
|
|
|
|
if (window.Fix && this._store) { |
|
|
|
|
var store = findStore(this.options.context || this.options.element); |
|
|
|
|
this._storeCreated = true; |
|
|
|
|
if (store) { |
|
|
|
|
pushTarget(store); |
|
|
|
|
needPop = true; |
|
|
|
@ -81446,7 +81425,6 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
_.each(["_mount"], function (name) { |
|
|
|
|
var old = BI.Widget.prototype[name]; |
|
|
|
|
old && (BI.Widget.prototype[name] = function () { |
|
|
|
|
createStore.call(this); |
|
|
|
|
this.store && pushTarget(this.store); |
|
|
|
|
var res = old.apply(this, arguments); |
|
|
|
|
this.store && popTarget(); |
|
|
|
|