|
|
@ -12682,19 +12682,18 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
this._initElementHeight(); |
|
|
|
this._initElementHeight(); |
|
|
|
this._initVisual(); |
|
|
|
this._initVisual(); |
|
|
|
this._initState(); |
|
|
|
this._initState(); |
|
|
|
var func = function () { |
|
|
|
if (this.beforeInit) { |
|
|
|
this.fireEvent(BI.Events.INIT); |
|
|
|
this.beforeInit(BI.bind(this._render, this)); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this._render(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_render: function(){ |
|
|
|
this.beforeCreate && this.beforeCreate(); |
|
|
|
this.beforeCreate && this.beforeCreate(); |
|
|
|
this._initElement(); |
|
|
|
this._initElement(); |
|
|
|
this._initEffects(); |
|
|
|
this._initEffects(); |
|
|
|
this.created && this.created(); |
|
|
|
this.created && this.created(); |
|
|
|
this.fireEvent(BI.Events.AFTERINIT); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
if (this.beforeInit) { |
|
|
|
|
|
|
|
this.beforeInit(BI.bind(func, this)); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
func.call(this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -27484,6 +27483,7 @@ Data.Source = BISource = { |
|
|
|
|
|
|
|
|
|
|
|
var _init = BI.Widget.prototype._init; |
|
|
|
var _init = BI.Widget.prototype._init; |
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
BI.Widget.prototype._init = function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
var needPop = false; |
|
|
|
var needPop = false; |
|
|
|
if (window.Fix && this._store) { |
|
|
|
if (window.Fix && this._store) { |
|
|
|
var store = findStore(this.options.element); |
|
|
|
var store = findStore(this.options.element); |
|
|
@ -27500,13 +27500,20 @@ Data.Source = BISource = { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.model = this.store; |
|
|
|
this.model = this.store; |
|
|
|
} |
|
|
|
} |
|
|
|
initWatch(this, this.watch); |
|
|
|
|
|
|
|
needPop = true; |
|
|
|
needPop = true; |
|
|
|
} |
|
|
|
} |
|
|
|
_init.apply(this, arguments); |
|
|
|
_init.apply(this, arguments); |
|
|
|
needPop && popTarget(); |
|
|
|
needPop && popTarget(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _init = BI.Widget.prototype._render; |
|
|
|
|
|
|
|
BI.Widget.prototype._render = function () { |
|
|
|
|
|
|
|
if (window.Fix && this._store) { |
|
|
|
|
|
|
|
initWatch(this, this.watch); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
_render.apply(this, arguments); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var unMount = BI.Widget.prototype.__d; |
|
|
|
var unMount = BI.Widget.prototype.__d; |
|
|
|
BI.Widget.prototype.__d = function () { |
|
|
|
BI.Widget.prototype.__d = function () { |
|
|
|
unMount.apply(this, arguments); |
|
|
|
unMount.apply(this, arguments); |
|
|
|