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; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just submitted this as a pull request so hopefully it'll be part of Konami JS soon :)