mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 02:18:49 +03:00
notifySubscribers and equalityComparer are not used outside KnockoutJS
This commit is contained in:
parent
679d7356e0
commit
30e9b89d9b
9 changed files with 113 additions and 114 deletions
|
|
@ -42,13 +42,13 @@ var observableFn = {
|
|||
let value = this[observableLatestValue];
|
||||
return value && value.toJSON ? value.toJSON() : value;
|
||||
},
|
||||
'equalityComparer': valuesArePrimitiveAndEqual,
|
||||
equalityComparer: valuesArePrimitiveAndEqual,
|
||||
peek: function() { return this[observableLatestValue]; },
|
||||
valueHasMutated: function () {
|
||||
this['notifySubscribers'](this[observableLatestValue], 'spectate');
|
||||
this['notifySubscribers'](this[observableLatestValue]);
|
||||
this.notifySubscribers(this[observableLatestValue], 'spectate');
|
||||
this.notifySubscribers(this[observableLatestValue]);
|
||||
},
|
||||
valueWillMutate: function () { this['notifySubscribers'](this[observableLatestValue], 'beforeChange'); }
|
||||
valueWillMutate: function () { this.notifySubscribers(this[observableLatestValue], 'beforeChange'); }
|
||||
};
|
||||
|
||||
// Note that for browsers that don't support proto assignment, the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue