mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
fuuuu our require() sux
This commit is contained in:
parent
90d069b3f1
commit
bbc4779f4d
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';
|
||||
|
Loading…
Reference in New Issue
Block a user