mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Fixes issue with Object prototype and the chaining syntax. [closes #4247]
This commit is contained in:
committed by
John-David Dalton
parent
343456d696
commit
e42cd97dae
@@ -17020,9 +17020,10 @@
|
|||||||
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
|
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
|
||||||
var lodashFunc = lodash[methodName];
|
var lodashFunc = lodash[methodName];
|
||||||
if (lodashFunc) {
|
if (lodashFunc) {
|
||||||
var key = (lodashFunc.name + ''),
|
var key = lodashFunc.name + '';
|
||||||
names = realNames[key] || (realNames[key] = []);
|
if (!hasOwnProperty.call(realNames, key)) return;
|
||||||
|
|
||||||
|
var names = realNames[key] || (realNames[key] = []);
|
||||||
names.push({ 'name': methodName, 'func': lodashFunc });
|
names.push({ 'name': methodName, 'func': lodashFunc });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user