From 2f168c71656933d1841d515c31c89a759e50d060 Mon Sep 17 00:00:00 2001 From: Dahan Gong Date: Fri, 13 Jan 2017 19:09:46 +0800 Subject: [PATCH] fix a typo in Interactable.off It should have called `this.events.off` --- src/Interactable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interactable.js b/src/Interactable.js index a1a1cb625..0f83e5daa 100644 --- a/src/Interactable.js +++ b/src/Interactable.js @@ -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)) {