Last active
August 29, 2015 14:10
-
-
Save ianaya89/1c1f98f5f8a1ebe285b3 to your computer and use it in GitHub Desktop.
Universal Module Definition (UMD)
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
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['b'], factory); //AMD | |
} else if (typeof exports === 'object') { | |
module.exports = factory; //CommonJS | |
} else { | |
root.amdWeb = factory(root.b); //Global | |
} | |
}(this, function (b) { | |
return {}; //Module | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment