From 01303c1e31334c25939c1bcc233da18f1b1502de Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 14 Jul 2013 09:14:34 -0700 Subject: [PATCH] Cleanup argument juggling comments. Former-commit-id: e4c175791e514e7e8055f39c2156375c2da91bf2 --- dist/lodash.compat.js | 12 ++++++------ dist/lodash.js | 12 ++++++------ dist/lodash.underscore.js | 4 ++-- lodash.js | 12 ++++++------ 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index 93dde3d41..5d645d50d 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -1456,8 +1456,8 @@ function clone(value, deep, callback, thisArg, stackA, stackB) { var result = value; - // allows working with "Collections" methods without using their `callback` - // argument, `index|key`, for this method's `callback` + // allows working with "Collections" methods without using their `index` + // and `collection` arguments for `deep` and `callback` if (typeof deep != 'boolean' && deep != null) { thisArg = callback; callback = deep; @@ -1598,8 +1598,8 @@ * @category Objects * @param {Object} object The destination object. * @param {Object} [source1, source2, ...] The source objects. - * @param- {Object} [guard] Allows working with `_.reduce` without using its - * callback's `key` and `object` arguments as sources. + * @param- {Object} [guard] Allows working with `_.reduce` without using + * their `key` and `object` arguments as sources. * @returns {Object} Returns the destination object. * @example * @@ -2366,8 +2366,8 @@ stackA = getArray(); stackB = getArray(); - // allows working with `_.reduce` and `_.reduceRight` without - // using their `callback` arguments, `index|key` and `collection` + // allows working with `_.reduce` and `_.reduceRight` without using + // their `index` and `collection` arguments if (typeof deepIndicator != 'number') { length = args.length; } diff --git a/dist/lodash.js b/dist/lodash.js index ba90d26cb..d0495c905 100644 --- a/dist/lodash.js +++ b/dist/lodash.js @@ -1076,8 +1076,8 @@ function clone(value, deep, callback, thisArg, stackA, stackB) { var result = value; - // allows working with "Collections" methods without using their `callback` - // argument, `index|key`, for this method's `callback` + // allows working with "Collections" methods without using their `index` + // and `collection` arguments for `deep` and `callback` if (typeof deep != 'boolean' && deep != null) { thisArg = callback; callback = deep; @@ -1218,8 +1218,8 @@ * @category Objects * @param {Object} object The destination object. * @param {Object} [source1, source2, ...] The source objects. - * @param- {Object} [guard] Allows working with `_.reduce` without using its - * callback's `key` and `object` arguments as sources. + * @param- {Object} [guard] Allows working with `_.reduce` without using + * their `key` and `object` arguments as sources. * @returns {Object} Returns the destination object. * @example * @@ -2020,8 +2020,8 @@ stackA = getArray(); stackB = getArray(); - // allows working with `_.reduce` and `_.reduceRight` without - // using their `callback` arguments, `index|key` and `collection` + // allows working with `_.reduce` and `_.reduceRight` without using + // their `index` and `collection` arguments if (typeof deepIndicator != 'number') { length = args.length; } diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index fba848d63..bc603c1d3 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -756,8 +756,8 @@ * @category Objects * @param {Object} object The destination object. * @param {Object} [source1, source2, ...] The source objects. - * @param- {Object} [guard] Allows working with `_.reduce` without using its - * callback's `key` and `object` arguments as sources. + * @param- {Object} [guard] Allows working with `_.reduce` without using + * their `key` and `object` arguments as sources. * @returns {Object} Returns the destination object. * @example * diff --git a/lodash.js b/lodash.js index dad6728af..fb577c96e 100644 --- a/lodash.js +++ b/lodash.js @@ -1475,8 +1475,8 @@ function clone(value, deep, callback, thisArg, stackA, stackB) { var result = value; - // allows working with "Collections" methods without using their `callback` - // argument, `index|key`, for this method's `callback` + // allows working with "Collections" methods without using their `index` + // and `collection` arguments for `deep` and `callback` if (typeof deep != 'boolean' && deep != null) { thisArg = callback; callback = deep; @@ -1617,8 +1617,8 @@ * @category Objects * @param {Object} object The destination object. * @param {Object} [source1, source2, ...] The source objects. - * @param- {Object} [guard] Allows working with `_.reduce` without using its - * callback's `key` and `object` arguments as sources. + * @param- {Object} [guard] Allows working with `_.reduce` without using + * their `key` and `object` arguments as sources. * @returns {Object} Returns the destination object. * @example * @@ -2385,8 +2385,8 @@ stackA = getArray(); stackB = getArray(); - // allows working with `_.reduce` and `_.reduceRight` without - // using their `callback` arguments, `index|key` and `collection` + // allows working with `_.reduce` and `_.reduceRight` without using + // their `index` and `collection` arguments if (typeof deepIndicator != 'number') { length = args.length; }