Skip to content

Commit

Permalink
fix(helper): simplify emptying of array
Browse files Browse the repository at this point in the history
  • Loading branch information
mjzffr committed Nov 9, 2019
1 parent 53de1a3 commit 16d36fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper.js
Expand Up @@ -137,7 +137,7 @@ class Helper {
static removeEventListeners(listeners) {
for (const listener of listeners)
listener.emitter.removeListener(listener.eventName, listener.handler);
listeners.splice(0, listeners.length);
listeners.length = 0;
}

/**
Expand Down

0 comments on commit 16d36fb

Please sign in to comment.