mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Make the exports system include the wrapper function in node.js
This commit is contained in:
2
underscore-min.js
vendored
2
underscore-min.js
vendored
File diff suppressed because one or more lines are too long
@@ -25,7 +25,12 @@
|
|||||||
var _ = root._ = function(obj) { return new wrapper(obj); };
|
var _ = root._ = function(obj) { return new wrapper(obj); };
|
||||||
|
|
||||||
// Export the Underscore object for CommonJS.
|
// Export the Underscore object for CommonJS.
|
||||||
if (typeof exports !== 'undefined') _ = exports;
|
if (module && typeof module.exports !== 'undefined') {
|
||||||
|
// richer binding for systems that allow it (node.js for example)
|
||||||
|
module.exports = _;
|
||||||
|
} else {
|
||||||
|
if (typeof exports !== 'undefined') _ = exports;
|
||||||
|
}
|
||||||
|
|
||||||
// Current version.
|
// Current version.
|
||||||
_.VERSION = '0.4.2';
|
_.VERSION = '0.4.2';
|
||||||
|
|||||||
Reference in New Issue
Block a user