Last active
December 11, 2015 10:19
-
-
Save remybach/4585929 to your computer and use it in GitHub Desktop.
Making Konami JS (http://snaptortoise.com/konami-js) a RequireJS (http://requirejs.org) compatible module. Simply add the below to the bottom of your konami js file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Export this as a module for RequireJS | |
typeof define === "function" && define([], function() { return Konami; }); |
Doh... I'm a bit of RequireJS noob (started using it today for the first time).
Thanks for the help :)
Just submitted this as a pull request so hopefully it'll be part of Konami JS soon :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you only want:
The first argument is an array of dependencies, and as far as I can see this doesn't have any.