fuuuu our require() sux

This commit is contained in:
Chris Wanstrath 2011-11-25 23:54:03 -08:00
parent 90d069b3f1
commit bbc4779f4d

15
vendor/underscore.js vendored
View File

@ -51,20 +51,7 @@
// Export the Underscore object for **Node.js** and **"CommonJS"**, with
// backwards-compatibility for the old `require()` API. If we're not in
// CommonJS, add `_` to the global object.
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = _;
}
exports._ = _;
} else if (typeof define === 'function' && define.amd) {
// Register as a named module with AMD.
define('underscore', function() {
return _;
});
} else {
// Exported as a string, for Closure Compiler "advanced" mode.
root['_'] = _;
}
module.exports = _;
// Current version.
_.VERSION = '1.2.2';