diff options
author | Craig Campbell <iamcraigcampbell@gmail.com> | 2013-08-30 11:37:57 -0700 |
---|---|---|
committer | Craig Campbell <iamcraigcampbell@gmail.com> | 2013-08-30 11:37:57 -0700 |
commit | 9665b738b3ddb8f99eadc967d6675f6e83cc034d (patch) | |
tree | 7597db6412b5f13a6006b996eb2f072bb01e03ce | |
parent | 99fd27dca66416dbc047c729189d88e453d8bf54 (diff) | |
parent | b87f9a6dcf5cf5dd8530ad5b0ed75e625e1eedb2 (diff) | |
download | mousetrap-9665b738b3ddb8f99eadc967d6675f6e83cc034d.zip mousetrap-9665b738b3ddb8f99eadc967d6675f6e83cc034d.tar.gz mousetrap-9665b738b3ddb8f99eadc967d6675f6e83cc034d.tar.bz2 |
Merge pull request #153 from rison/master
Remove global reference to improve performance
-rw-r--r-- | mousetrap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mousetrap.js b/mousetrap.js index ec8a6cc..7260432 100644 --- a/mousetrap.js +++ b/mousetrap.js @@ -20,7 +20,7 @@ * @version 1.4.4 * @url craig.is/killing/mice */ -(function() { +(function(window, document, undefined) { /** * mapping of special keycodes to their corresponding keys @@ -928,4 +928,4 @@ if (typeof define === 'function' && define.amd) { define(Mousetrap); } -}) (); +}) (window, document); |