Clarify AMD exports comment. [ci skip]

This commit is contained in:
John-David Dalton
2014-06-09 22:54:52 -07:00
parent 5d2133a483
commit 3d1ee9dcf0

View File

@@ -8892,9 +8892,9 @@
// some AMD build optimizers like r.js check for condition patterns like the following:
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
// Expose Lo-Dash to the global object even when an AMD loader is present in
// case Lo-Dash is loaded with a RequireJS shim config.
// See http://requirejs.org/docs/api.html#config-shim
// Expose Lo-Dash to the global object when an AMD loader is present to avoid
// errors in cases where Lo-Dash is loaded by a script tag and not intended
// as an AMD module. See http://requirejs.org/docs/errors.html#mismatch
root._ = _;
// define as an anonymous module so, through path mapping, it can be