diff --git a/modules/API/API.js b/modules/API/API.js index ea5cdb7e70..28236e124b 100644 --- a/modules/API/API.js +++ b/modules/API/API.js @@ -149,7 +149,7 @@ function isEventEnabled (name) { * @param object data associated with the event */ function triggerEvent (name, object) { - if (this.isEnabled() && isEventEnabled(name)) { + if (isEnabled() && isEventEnabled(name)) { sendMessage({ type: "event", action: "result",