|
|
|
@ -103,12 +103,12 @@ function on(eventName, handler) {
|
|
|
|
|
|
|
|
|
|
function set(newState) {
|
|
|
|
|
this._set(assign({}, newState));
|
|
|
|
|
if (this._root._block) return;
|
|
|
|
|
this._root._block = true;
|
|
|
|
|
if (this._root._lock) return;
|
|
|
|
|
this._root._lock = true;
|
|
|
|
|
callAll(this._root._beforecreate);
|
|
|
|
|
callAll(this._root._oncreate);
|
|
|
|
|
callAll(this._root._aftercreate);
|
|
|
|
|
this._root._block = false;
|
|
|
|
|
this._root._lock = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function callAll(fns) {
|
|
|
|
@ -198,11 +198,11 @@ function SvelteComponent ( options ) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( !options._root ) {
|
|
|
|
|
this._block = true;
|
|
|
|
|
this._lock = true;
|
|
|
|
|
callAll(this._beforecreate);
|
|
|
|
|
callAll(this._oncreate);
|
|
|
|
|
callAll(this._aftercreate);
|
|
|
|
|
this._block = false;
|
|
|
|
|
this._lock = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|