Skip to content

Commit

Permalink
chore: restore event listener check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Nov 24, 2017
1 parent a73dd64 commit 26ad6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const proxy = (a, b) => (e) => b(a(e));

const bind = (el, event, callback) =>
el.addEventListener(event, callback);
el.addEventListener && el.addEventListener(event, callback);

const unbind = (el, event, callback) =>
el.removeEventListener(event, callback);
el.removeEventListener && el.removeEventListener(event, callback);

const noop = () => { /* empty */ };

Expand Down

0 comments on commit 26ad6d4

Please sign in to comment.