mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27: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) {
|
||||
var lodashFunc = lodash[methodName];
|
||||
if (lodashFunc) {
|
||||
var key = (lodashFunc.name + ''),
|
||||
names = realNames[key] || (realNames[key] = []);
|
||||
var key = lodashFunc.name + '';
|
||||
if (!hasOwnProperty.call(realNames, key)) return;
|
||||
|
||||
var names = realNames[key] || (realNames[key] = []);
|
||||
names.push({ 'name': methodName, 'func': lodashFunc });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user