Skip to content

Commit

Permalink
firfox / chrome hasOwnProperty worked different
Browse files Browse the repository at this point in the history
Signed-off-by: Silvan Strübi <[email protected]>
  • Loading branch information
Silvan Strübi committed Jan 9, 2019
1 parent 9b58197 commit ab77a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JavaScript/Classes/Traps/Dom/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Events = (Root = Proxify()) => class Events extends Root {
} else if (!funcArr[1]) {
funcArr[1] = {}
}
if (Array.hasOwnProperty(command)) {
if (command in []) {
this.EventsHelper.events.get(prop) ? this.EventsHelper.events.get(prop)[command](funcArr) : this.EventsHelper.events.set(prop, [funcArr])
target[prop] = (event) => {
this.EventsHelper.events.get(prop).some(funcArr => {
Expand Down

0 comments on commit ab77a6d

Please sign in to comment.