mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
storage.js: Rename Storage.subscribe to onChange
This commit is contained in:
parent
c5beabf891
commit
363486277b
@ -103,7 +103,7 @@
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
subscribe: function(key, callback, context) {
|
||||
onChange: function(key, callback, context) {
|
||||
this.subscribers[this.prefixKey(key)] = [callback, context];
|
||||
},
|
||||
|
||||
@ -217,7 +217,7 @@
|
||||
this.storage = storage;
|
||||
this.key = key;
|
||||
|
||||
storage.subscribe(key, this.onChange, this);
|
||||
storage.onChange(key, this.onChange, this);
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user