From d21218fd57557ff7bf7c064213a692e938d4d98f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 21 Dec 2014 23:10:56 -0600 Subject: [PATCH] Make use of changed `baseValues` signature. --- lodash.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lodash.js b/lodash.js index 8f5048cd8..6cbbb6e60 100644 --- a/lodash.js +++ b/lodash.js @@ -7904,7 +7904,7 @@ return object != null && value === object[key] && hasOwnProperty.call(object, key); } } - var values = baseValues(source, function() { return props; }); + var values = baseValues(source, props); return baseIsMatch(object, props, values, customizer); } @@ -8822,7 +8822,7 @@ * @static * @memberOf _ * @category Object - * @param {Object} object The object to inspect. + * @param {Object} object The object to query. * @param {string} key The name of the property to resolve. * @param {*} [defaultValue] The value returned if the property value * resolves to `undefined`. @@ -8910,7 +8910,7 @@ * @static * @memberOf _ * @category Object - * @param {Object} object The object to inspect. + * @param {Object} object The object to query. * @returns {Array} Returns the array of property values. * @example * @@ -8925,7 +8925,7 @@ * // => [2, 1] (iteration order is not guaranteed) */ function values(object) { - return baseValues(object, keys); + return baseValues(object, keys(object)); } /** @@ -8935,7 +8935,7 @@ * @static * @memberOf _ * @category Object - * @param {Object} object The object to inspect. + * @param {Object} object The object to query. * @returns {Array} Returns the array of property values. * @example * @@ -8950,7 +8950,7 @@ * // => [2, 1, 0] (iteration order is not guaranteed) */ function valuesIn(object) { - return baseValues(object, keysIn); + return baseValues(object, keysIn(object)); } /*------------------------------------------------------------------------*/