Update umd doc note. [ci skip]

This commit is contained in:
John-David Dalton
2016-05-25 10:16:35 -07:00
parent 6e67ebab05
commit 33e08baf3f

View File

@@ -16390,14 +16390,14 @@
// Export lodash.
var _ = runInContext();
// Expose Lodash on the free variable `window` or `self` when available so it's
// globally accessible, even when bundled with Browserify, Webpack, etc. This
// also prevents errors in cases where Lodash is loaded by a script tag in the
// presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch
// for more details. Use `_.noConflict` to remove Lodash from the global object.
// Expose Lodash on the free variable `self` so it's globally accessible,
// even when bundled with Browserify, Webpack, etc. This also prevents errors
// when Lodash is loaded by a script tag in the presence of an AMD loader.
// See http://requirejs.org/docs/errors.html#mismatch for more details.
// Use `_.noConflict` to remove Lodash from the global object.
(freeSelf || {})._ = _;
// Some AMD build optimizers like r.js check for condition patterns like the following:
// Some AMD build optimizers, like r.js, check for condition patterns like:
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
// Define as an anonymous module so, through path mapping, it can be
// referenced as the "underscore" module.
@@ -16405,7 +16405,7 @@
return _;
});
}
// Check for `exports` after `define` in case a build optimizer adds an `exports` object.
// Check for `exports` after `define` in case a build optimizer adds it.
else if (freeModule) {
// Export for Node.js.
(freeModule.exports = _)._ = _;