Created
May 5, 2015 05:14
-
-
Save dbwhddn10/67697b06b7b953be23e6 to your computer and use it in GitHub Desktop.
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) { | |
// AMD | |
define(['underscore'], factory); | |
} else if (typeof exports === 'object') { | |
// Node, CommonJS-like | |
module.exports = factory(require('underscore')); | |
} else { | |
// Browser globals (root is window) | |
root._ = factory(root._); | |
} | |
}(this, function (_) { | |
... | |
return {}; | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment