Created
January 19, 2013 18:55
-
-
Save frozzare/4574310 to your computer and use it in GitHub Desktop.
This file contains 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
// AMD support | |
if (typeof define === 'function' && define.amd) { | |
define(function () { return App; }); | |
// CommonJS and Node.js module support. | |
} else if (typeof exports !== 'undefined') { | |
// Support Node.js specific `module.exports` (which can be a function) | |
if (typeof module != 'undefined' && module.exports) { | |
exports = module.exports = App; | |
} | |
// But always support CommonJS module 1.1.1 spec (`exports` cannot be a function) | |
exports.Cookies = App; | |
} else { | |
window.Cookies = App; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment