|
|
@ -106,12 +106,12 @@ export function onDev(eventName, handler) {
|
|
|
|
|
|
|
|
|
|
|
|
export function set(newState) {
|
|
|
|
export function set(newState) {
|
|
|
|
this._set(assign({}, newState));
|
|
|
|
this._set(assign({}, newState));
|
|
|
|
if (this._root._block) return;
|
|
|
|
if (this._root._lock) return;
|
|
|
|
this._root._block = true;
|
|
|
|
this._root._lock = true;
|
|
|
|
callAll(this._root._beforecreate);
|
|
|
|
callAll(this._root._beforecreate);
|
|
|
|
callAll(this._root._oncreate);
|
|
|
|
callAll(this._root._oncreate);
|
|
|
|
callAll(this._root._aftercreate);
|
|
|
|
callAll(this._root._aftercreate);
|
|
|
|
this._root._block = false;
|
|
|
|
this._root._lock = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function callAll(fns) {
|
|
|
|
export function callAll(fns) {
|
|
|
|