mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
fuuuu our require() sux
This commit is contained in:
15
vendor/underscore.js
vendored
15
vendor/underscore.js
vendored
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user