mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Extend baseCreateCallback to functions bound with native Function#bind and those with __bindData__ of false.
This commit is contained in:
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -385,8 +385,8 @@
|
||||
if (typeof func != 'function') {
|
||||
return identity;
|
||||
}
|
||||
// exit early if there is no `thisArg`
|
||||
if (typeof thisArg == 'undefined') {
|
||||
// exit early for no `thisArg` or already bound by `Function#bind`
|
||||
if (typeof thisArg == 'undefined' || !('prototype' in func)) {
|
||||
return func;
|
||||
}
|
||||
switch (argCount) {
|
||||
|
||||
Reference in New Issue
Block a user