Remove unnecessary context from eventtarget

This commit is contained in:
Juanjo Diaz
2019-02-16 23:34:13 +02:00
parent fe5974a740
commit 667f3cc20e

View File

@@ -29,7 +29,7 @@ export default class EventTargetMixin {
return true;
}
this._listeners.get(event.type)
.forEach(callback => callback.call(this, event), this);
.forEach(callback => callback.call(this, event));
return !event.defaultPrevented;
}
}