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
// No imports, those are more work, especially for plain browser. | |
// However, as soon as you have imports, you should switch to AMD on browsers. | |
// Related: http://www.2ality.com/2011/11/module-gap.html | |
({ define: | |
typeof define === "function" ? | |
define | |
: typeof module !== "undefined" ? | |
function(F) { module.exports = F() } | |
: function(F) { this.defClass = F() }.bind(this) |