Skip to content

Commit

Permalink
fix a typo in Interactable.off
Browse files Browse the repository at this point in the history
It should have called `this.events.off`
  • Loading branch information
gdh1995 authored Jan 13, 2017
1 parent 4f937f0 commit 2f168c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interactable.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class Interactable {

// if it is an action event type
if (contains(Interactable.eventTypes, eventType)) {
this.events.on(eventType, listener);
this.events.off(eventType, listener);
}
// delegated event
else if (isType.isString(this.target)) {
Expand Down

0 comments on commit 2f168c7

Please sign in to comment.