Bump to v3.9.2.

This commit is contained in:
John-David Dalton
2015-12-16 17:51:09 -08:00
parent 81e41ca0c8
commit d2754e0b9b
23 changed files with 167 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
define([], function() {
/**
* A specialized version of `baseExtremum` for arrays whichs invokes `iteratee`
* A specialized version of `baseExtremum` for arrays which invokes `iteratee`
* with one argument: (value).
*
* @private

View File

@@ -1,4 +1,4 @@
define(['./baseIsEqualDeep', '../lang/isObject'], function(baseIsEqualDeep, isObject) {
define(['./baseIsEqualDeep', '../lang/isObject', './isObjectLike'], function(baseIsEqualDeep, isObject, isObjectLike) {
/**
* The base implementation of `_.isEqual` without support for `this` binding
@@ -17,7 +17,7 @@ define(['./baseIsEqualDeep', '../lang/isObject'], function(baseIsEqualDeep, isOb
if (value === other) {
return true;
}
if (value == null || other == null || (!isObject(value) && !isObject(other))) {
if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
return value !== value && other !== other;
}
return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);

View File

@@ -4,8 +4,7 @@ define(['./baseGet', './baseIsEqual', './baseSlice', '../lang/isArray', './isKey
var undefined;
/**
* The base implementation of `_.matchesProperty` which does not which does
* not clone `value`.
* The base implementation of `_.matchesProperty` which does not clone `srcValue`.
*
* @private
* @param {string} path The path of the property to get.

View File

@@ -1,4 +1,4 @@
define(['./LazyWrapper', './getFuncName', '../chain/lodash'], function(LazyWrapper, getFuncName, lodash) {
define(['./LazyWrapper', './getData', './getFuncName', '../chain/lodash'], function(LazyWrapper, getData, getFuncName, lodash) {
/**
* Checks if `func` has a lazy counterpart.
@@ -9,7 +9,15 @@ define(['./LazyWrapper', './getFuncName', '../chain/lodash'], function(LazyWrapp
*/
function isLaziable(func) {
var funcName = getFuncName(func);
return !!funcName && func === lodash[funcName] && funcName in LazyWrapper.prototype;
if (!(funcName in LazyWrapper.prototype)) {
return false;
}
var other = lodash[funcName];
if (func === other) {
return true;
}
var data = getData(other);
return !!data && func === data[0];
}
return isLaziable;