|
|
@ -14362,6 +14362,8 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
update: function () { |
|
|
|
update: function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
beforeDestroyed: null, |
|
|
|
|
|
|
|
|
|
|
|
destroyed: null, |
|
|
|
destroyed: null, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -14721,18 +14723,20 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
__d: function () { |
|
|
|
__d: function () { |
|
|
|
|
|
|
|
this.beforeDestroyed && this.beforeDestroyed(); |
|
|
|
BI.each(this._children, function (i, widget) { |
|
|
|
BI.each(this._children, function (i, widget) { |
|
|
|
widget._unMount && widget._unMount(); |
|
|
|
widget._unMount && widget._unMount(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this._children = {}; |
|
|
|
this._children = {}; |
|
|
|
this._parent = null; |
|
|
|
this._parent = null; |
|
|
|
this._isMounted = false; |
|
|
|
this._isMounted = false; |
|
|
|
|
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_unMount: function () { |
|
|
|
_unMount: function () { |
|
|
|
this.__d(); |
|
|
|
this.__d(); |
|
|
|
|
|
|
|
this.fireEvent(BI.Events.UNMOUNT); |
|
|
|
this.purgeListeners(); |
|
|
|
this.purgeListeners(); |
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isolate: function () { |
|
|
|
isolate: function () { |
|
|
@ -14752,14 +14756,12 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
|
|
|
|
|
|
|
|
_destroy: function () { |
|
|
|
_destroy: function () { |
|
|
|
this.__d(); |
|
|
|
this.__d(); |
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
this.element.destroy(); |
|
|
|
this.element.destroy(); |
|
|
|
this.purgeListeners(); |
|
|
|
this.purgeListeners(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
destroy: function () { |
|
|
|
destroy: function () { |
|
|
|
this.__d(); |
|
|
|
this.__d(); |
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
this.element.destroy(); |
|
|
|
this.element.destroy(); |
|
|
|
this.fireEvent(BI.Events.DESTROY); |
|
|
|
this.fireEvent(BI.Events.DESTROY); |
|
|
|
this.purgeListeners(); |
|
|
|
this.purgeListeners(); |
|
|
@ -15255,6 +15257,8 @@ BI.View = BI.inherit(BI.V, { |
|
|
|
|
|
|
|
|
|
|
|
created: null, |
|
|
|
created: null, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
beforeDestroyed: null, |
|
|
|
|
|
|
|
|
|
|
|
destroyed: null, |
|
|
|
destroyed: null, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -15744,18 +15748,22 @@ BI.View = BI.inherit(BI.V, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_unMount: function () { |
|
|
|
_unMount: function () { |
|
|
|
|
|
|
|
this.beforeDestroyed && this.beforeDestroyed(); |
|
|
|
BI.each(this._cardLayouts, function (name, card) { |
|
|
|
BI.each(this._cardLayouts, function (name, card) { |
|
|
|
card && card._unMount(); |
|
|
|
card && card._unMount(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
delete this._cardLayouts; |
|
|
|
delete this._cardLayouts; |
|
|
|
delete this._cards; |
|
|
|
delete this._cards; |
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
this.trigger(BI.Events.UNMOUNT); |
|
|
|
this.off(); |
|
|
|
this.off(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_destroy: function () { |
|
|
|
_destroy: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
BI.each(this._cardLayouts, function (name, card) { |
|
|
|
BI.each(this._cardLayouts, function (name, card) { |
|
|
|
card && card._unMount(); |
|
|
|
card && card._unMount(); |
|
|
|
|
|
|
|
BI.Layers.remove(name + self.cid); |
|
|
|
}); |
|
|
|
}); |
|
|
|
delete this._cardLayouts; |
|
|
|
delete this._cardLayouts; |
|
|
|
delete this._cards; |
|
|
|
delete this._cards; |
|
|
@ -20132,7 +20140,7 @@ BI.PopoverSection.EVENT_CLOSE = "EVENT_CLOSE";;(function () { |
|
|
|
if (numReg) { |
|
|
|
if (numReg) { |
|
|
|
var num = numReg[0]; |
|
|
|
var num = numReg[0]; |
|
|
|
var orilen = num.length; |
|
|
|
var orilen = num.length; |
|
|
|
var newnum = BI.parseInt(num) + 1 + ''; |
|
|
|
var newnum = parseInt(num) + 1 + ''; |
|
|
|
//进位到整数部分
|
|
|
|
//进位到整数部分
|
|
|
|
if (newnum.length > orilen) { |
|
|
|
if (newnum.length > orilen) { |
|
|
|
newnum = newnum.substr(1); |
|
|
|
newnum = newnum.substr(1); |
|
|
@ -21552,7 +21560,10 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, { |
|
|
|
var view = this.createView(url, data, viewData, context); |
|
|
|
var view = this.createView(url, data, viewData, context); |
|
|
|
isValid && context.model.addChild(modelData, view.model); |
|
|
|
isValid && context.model.addChild(modelData, view.model); |
|
|
|
view.listenTo(view.model, "destroy", function () { |
|
|
|
view.listenTo(view.model, "destroy", function () { |
|
|
|
self.remove(url); |
|
|
|
self.remove(url, context); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
context.on(BI.Events.UNMOUNT, function () { |
|
|
|
|
|
|
|
self.remove(url, context); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.store[url].populate(view); |
|
|
|
this.store[url].populate(view); |
|
|
|
this.views[url] = view; |
|
|
|
this.views[url] = view; |
|
|
@ -21758,6 +21769,12 @@ _.extend(BI, { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
DESTROY: '_DESTROY', |
|
|
|
DESTROY: '_DESTROY', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @static |
|
|
|
|
|
|
|
* @property 取消挂载事件 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
UNMOUNT: '_UNMOUNT', |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @static |
|
|
|
* @static |
|
|
|
* @property 清除选择 |
|
|
|
* @property 清除选择 |
|
|
|