diff --git a/src/store/store.js b/src/store/store.js index 94fd085..78a5608 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -130,6 +130,11 @@ class Store { emitChange(); } } + + fetchHasChanged(fetch) { + let emitter = this.__emitter; + emitter.emit.call(emitter, StoreEvents.FETCH_CHANGE_EVENT, fetch); + } hasAlreadyFetched(fetchId) { return !!this.__fetchHistory[fetchId]; @@ -205,4 +210,4 @@ class Store { Store.prototype.fetch = fetch; Store.prototype.handleAction = handleAction; -module.exports = Store; \ No newline at end of file +module.exports = Store;