Skip to content

Commit

Permalink
Remove parentheses and comparisons with undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
pazguille committed Nov 13, 2013
1 parent 80bf132 commit 7978f38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
@@ -1,6 +1,6 @@
var bind = (window.addEventListener !== undefined) ? 'addEventListener' : 'attachEvent',
unbind = (window.removeEventListener !== undefined) ? 'removeEventListener' : 'detachEvent',
prefix = (bind !== 'addEventListener') ? 'on' : '';
var bind = window.addEventListener ? 'addEventListener' : 'attachEvent',
unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent',
prefix = bind !== 'addEventListener' ? 'on' : '';

/**
* Bind `el` event `type` to `fn`.
Expand Down

0 comments on commit 7978f38

Please sign in to comment.