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,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;