Skip to content

Commit

Permalink
Fix module.exports for Browserify
Browse files Browse the repository at this point in the history
The global is not window in Browserify. So use local assignKey to define the export.
  • Loading branch information
esamattis committed Feb 9, 2014
1 parent 34cd569 commit 26e75d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keymaster.js
Original file line number Diff line number Diff line change
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 = assignKey;

})(this);

0 comments on commit 26e75d7

Please sign in to comment.