Bump to v4.5.1.

This commit is contained in:
John-David Dalton
2016-02-21 20:59:42 -08:00
parent 0dd6798d8b
commit 7eeb5ebd61
36 changed files with 487 additions and 208 deletions

View File

@@ -1,4 +1,5 @@
var createWrapper = require('./_createWrapper'),
getPlaceholder = require('./_getPlaceholder'),
replaceHolders = require('./_replaceHolders'),
rest = require('./rest');
@@ -38,9 +39,7 @@ var PARTIAL_FLAG = 32;
* // => 'hi fred'
*/
var partial = rest(function(func, partials) {
var placeholder = partial.placeholder,
holders = replaceHolders(partials, placeholder);
var holders = replaceHolders(partials, getPlaceholder(partial));
return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
});