From 363486277b72c121349180987f3d8ab3a0143c6e Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 10 Jul 2019 07:33:07 +0200 Subject: [PATCH] storage.js: Rename Storage.subscribe to onChange --- public/js/icinga/storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/storage.js b/public/js/icinga/storage.js index 12a484051..05661dbff 100644 --- a/public/js/icinga/storage.js +++ b/public/js/icinga/storage.js @@ -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; },