Skip to content

Commit

Permalink
Bug fixed: Fail to remove the "focus" event handler in "uninit()"
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-chang committed Nov 7, 2015
1 parent da87ef9 commit 2929f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.SpatialNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@
},

uninit: function() {
window.addEventListener('focus', onFocus, true);
window.removeEventListener('focus', onFocus, true);
$(window).off('keyup', onKeyUp);
$(window).off('keydown', onKeyDown);
this.clear();
Expand Down

0 comments on commit 2929f4c

Please sign in to comment.