Permalink
Browse files

AMD support.

  • Loading branch information...
dmauro committed May 4, 2014
1 parent a8c8938 commit 24c52523df0e5f48f8c8cf153df629bf61633156
Showing with 8 additions and 1 deletion.
  1. +8 −1 keypress.coffee
View
@@ -56,7 +56,7 @@ _metakey = "ctrl"
# Public object and Classes
###########################
window.keypress = {}
keypress = {}
keypress.debug = false
@@ -870,3 +870,10 @@ _keycode_dictionary =
_decide_meta_key()
_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.