forked from cybrespace/pinafore
remove deprecated store.onchange (#168)
This commit is contained in:
parent
a24177b62a
commit
7f5bea8f5b
|
@ -23,7 +23,7 @@ export class LocalStorageStore extends Store {
|
|||
}
|
||||
}
|
||||
this.set(newState)
|
||||
this.onchange((state, changed) => {
|
||||
this.on('state', ({changed}) => {
|
||||
Object.keys(changed).forEach(change => {
|
||||
if (this._keysToWatch.has(change)) {
|
||||
this._keysToSave[change] = true
|
||||
|
|
Loading…
Reference in New Issue