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