|
|
@ -157,9 +157,12 @@ function _set(newState) {
|
|
|
|
this._state = assign({}, oldState, newState);
|
|
|
|
this._state = assign({}, oldState, newState);
|
|
|
|
this._recompute(changed, this._state);
|
|
|
|
this._recompute(changed, this._state);
|
|
|
|
if (this._bind) this._bind(changed, this._state);
|
|
|
|
if (this._bind) this._bind(changed, this._state);
|
|
|
|
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
|
|
|
|
|
|
|
|
this._fragment.p(changed, this._state);
|
|
|
|
if (this._fragment) {
|
|
|
|
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
|
|
|
|
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
|
|
|
|
|
|
|
|
this._fragment.p(changed, this._state);
|
|
|
|
|
|
|
|
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function callAll(fns) {
|
|
|
|
function callAll(fns) {
|
|
|
|