diff --git a/store.js b/store.js index 1447c78eaa..2bf08dcf7e 100644 --- a/store.js +++ b/store.js @@ -118,6 +118,8 @@ assign(Store.prototype, { onchange: function(callback) { // TODO remove this method + console.warn("store.onchange is deprecated in favour of store.on('state', event => {...})"); + return this.on('state', function(event) { callback(event.current, event.changed); });