mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Set metadata for curried lazy lodash methods.
This commit is contained in:
@@ -3401,7 +3401,13 @@
|
|||||||
if (!isCurryBound) {
|
if (!isCurryBound) {
|
||||||
bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
|
bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
|
||||||
}
|
}
|
||||||
var result = createHybridWrapper(func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity);
|
var funcName = support.funcNames ? func.name : '',
|
||||||
|
newData = [func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity],
|
||||||
|
result = createHybridWrapper.apply(undefined, newData);
|
||||||
|
|
||||||
|
if (funcName && func === lodash[funcName] && LazyWrapper.prototype[funcName]) {
|
||||||
|
setData(result, newData);
|
||||||
|
}
|
||||||
result.placeholder = placeholder;
|
result.placeholder = placeholder;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user