Skip to content

Commit

Permalink
AMD support.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmauro committed May 4, 2014
1 parent a8c8938 commit 24c5252
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion keypress.coffee
Expand Up @@ -56,7 +56,7 @@ _metakey = "ctrl"
# Public object and Classes # Public object and Classes
########################### ###########################


window.keypress = {} keypress = {}


keypress.debug = false keypress.debug = false


Expand Down Expand Up @@ -870,3 +870,10 @@ _keycode_dictionary =


_decide_meta_key() _decide_meta_key()
_change_keycodes_by_browser() _change_keycodes_by_browser()

# Anonymous Module Definition
if typeof define is "function" and define.amd
define [], ->
return keypress
else
window.keypress = keypress

0 comments on commit 24c5252

Please sign in to comment.