dispatchable-store
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -60,4 +60,5 @@ 'use strict'; | ||
}; | ||
_this.subscribers.push = subscriber; | ||
_this.subscribers.push(subscriber); | ||
_this.on('change', subscriber); | ||
return _this.subscribers.length - 1; | ||
@@ -78,3 +79,3 @@ }; | ||
_this.chains = {}; | ||
_this.subscribers = {}; | ||
_this.subscribers = []; | ||
return _this; | ||
@@ -81,0 +82,0 @@ } |
{ | ||
"name": "dispatchable-store", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -24,3 +24,3 @@ const { EventEmitter2 } = require('eventemitter2') | ||
this.chains = {} | ||
this.subscribers = {} | ||
this.subscribers = [] | ||
} | ||
@@ -145,4 +145,5 @@ | ||
} | ||
this.subscribers.push = subscriber | ||
this.subscribers.push(subscriber) | ||
this.on('change', subscriber) | ||
return this.subscribers.length - 1 | ||
@@ -149,0 +150,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7456625
192
5970