Skip to content

Commit dd044fc

Browse files
Andaristjamiebuilds
authored andcommitted
Fixed bug in unsubscribing mechanism
1 parent 50cf4c7 commit dd044fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function createEventEmitter(value) {
3131
},
3232

3333
off(handler) {
34-
handlers = handlers.filter(h => h === handler);
34+
handlers = handlers.filter(h => h !== handler);
3535
},
3636

3737
get() {

0 commit comments

Comments
 (0)