Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions keymaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
if (!_handlers[key]) {
return;
}
for (i = 0; i < _handlers[key].length; i++) {
for (i in _handlers[key]) {
obj = _handlers[key][i];
// only clear handlers if correct scope and mods match
if (obj.scope === scope && compareArray(obj.mods, mods)) {
Expand Down Expand Up @@ -291,6 +291,6 @@
global.key.noConflict = noConflict;
global.key.unbind = unbindKey;

if(typeof module !== 'undefined') module.exports = key;
if(typeof module !== 'undefined') module.exports = global.key;

})(this);
})(window);