mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v4.5.1.
This commit is contained in:
5
bind.js
5
bind.js
@@ -1,4 +1,5 @@
|
||||
import createWrapper from './_createWrapper';
|
||||
import getPlaceholder from './_getPlaceholder';
|
||||
import replaceHolders from './_replaceHolders';
|
||||
import rest from './rest';
|
||||
|
||||
@@ -44,9 +45,7 @@ var BIND_FLAG = 1,
|
||||
var bind = rest(function(func, thisArg, partials) {
|
||||
var bitmask = BIND_FLAG;
|
||||
if (partials.length) {
|
||||
var placeholder = bind.placeholder,
|
||||
holders = replaceHolders(partials, placeholder);
|
||||
|
||||
var holders = replaceHolders(partials, getPlaceholder(bind));
|
||||
bitmask |= PARTIAL_FLAG;
|
||||
}
|
||||
return createWrapper(func, bitmask, thisArg, partials, holders);
|
||||
|
||||
Reference in New Issue
Block a user