Add AMD Module Support #26

wants to merge 3 commits into

3 participants


The Mousetrap object is only added to the global scope if a "define" function isn't present. Otherwise, it will call this function to define Mousetrap as an AMD module. Everything else remains unchanged.


Will this AMD support work with requirejs?

@ccampbell ccampbell closed this in e4f7e59 Jul 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment