Skip to content

Commit

Permalink
Merge pull request #33 from clairewli/js/bridge-remove-listener-fix
Browse files Browse the repository at this point in the history
Fix removeListener on the bridge to call delete
  • Loading branch information
clairewli authored Apr 19, 2018
2 parents 8a51fa7 + 343db72 commit 473601a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ElectrodeBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class ElectrodeBridge extends EventEmitter {
uuid /*:string */ ) /*:EventEmitter*/ {
const event = this.eventListenerUUIDRef.get(uuid)
if(event) {
this.eventListenerUUIDRef.remove(uuid)
this.eventListenerUUIDRef.delete(uuid)
return this.removeListener(event.name, event.handler)
}
}
Expand Down

0 comments on commit 473601a

Please sign in to comment.