Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_bindPressEvents() {
if (this.get('mustClickSelf')) {
['mouseUp', 'touchEnd'].forEach((eventName) => {
this.on(eventName, this._pressEvent);
});
} else {
this.on(mouseUp('left'), this._pressEvent);
this.on(touchEnd(), this._pressEvent);
}
},