@@ -216,8 +216,7 @@ return /******/ (function(modules) { // webpackBootstrap
216
216
* @returns {Function|Object } Returns the converted function or object.
217
217
*/
218
218
function baseConvert ( util , name , func , options ) {
219
- var setPlaceholder ,
220
- isLib = typeof name == 'function' ,
219
+ var isLib = typeof name == 'function' ,
221
220
isObj = name === Object ( name ) ;
222
221
223
222
if ( isObj ) {
@@ -238,10 +237,10 @@ return /******/ (function(modules) { // webpackBootstrap
238
237
'rearg' : 'rearg' in options ? options . rearg : true
239
238
} ;
240
239
241
- var forceCurry = ( 'curry' in options ) && options . curry ,
240
+ var defaultHolder = isLib ? func : fallbackHolder ,
241
+ forceCurry = ( 'curry' in options ) && options . curry ,
242
242
forceFixed = ( 'fixed' in options ) && options . fixed ,
243
243
forceRearg = ( 'rearg' in options ) && options . rearg ,
244
- placeholder = isLib ? func : fallbackHolder ,
245
244
pristine = isLib ? func . runInContext ( ) : undefined ;
246
245
247
246
var helpers = isLib ? func : {
@@ -546,7 +545,7 @@ return /******/ (function(modules) { // webpackBootstrap
546
545
* @param {Function } func The function to wrap.
547
546
* @returns {Function } Returns the converted function.
548
547
*/
549
- function wrap ( name , func ) {
548
+ function wrap ( name , func , placeholder ) {
550
549
var result ,
551
550
realName = mapping . aliasToReal [ name ] || name ,
552
551
wrapped = func ,
@@ -591,17 +590,15 @@ return /******/ (function(modules) { // webpackBootstrap
591
590
} ;
592
591
}
593
592
result . convert = createConverter ( realName , func ) ;
594
- if ( mapping . placeholder [ realName ] ) {
595
- setPlaceholder = true ;
596
- result . placeholder = func . placeholder = placeholder ;
597
- }
593
+ result . placeholder = func . placeholder = placeholder ;
594
+
598
595
return result ;
599
596
}
600
597
601
598
/*--------------------------------------------------------------------------*/
602
599
603
600
if ( ! isObj ) {
604
- return wrap ( name , func ) ;
601
+ return wrap ( name , func , defaultHolder ) ;
605
602
}
606
603
var _ = func ;
607
604
@@ -611,7 +608,7 @@ return /******/ (function(modules) { // webpackBootstrap
611
608
each ( mapping . aryMethod [ aryKey ] , function ( key ) {
612
609
var func = _ [ mapping . remap [ key ] || key ] ;
613
610
if ( func ) {
614
- pairs . push ( [ key , wrap ( key , func ) ] ) ;
611
+ pairs . push ( [ key , wrap ( key , func , _ ) ] ) ;
615
612
}
616
613
} ) ;
617
614
} ) ;
@@ -637,9 +634,8 @@ return /******/ (function(modules) { // webpackBootstrap
637
634
} ) ;
638
635
639
636
_ . convert = convertLib ;
640
- if ( setPlaceholder ) {
641
- _ . placeholder = placeholder ;
642
- }
637
+ _ . placeholder = _ ;
638
+
643
639
// Assign aliases.
644
640
each ( keys ( _ ) , function ( key ) {
645
641
each ( mapping . realToAlias [ key ] || [ ] , function ( alias ) {
@@ -920,16 +916,6 @@ return /******/ (function(modules) { // webpackBootstrap
920
916
}
921
917
} ;
922
918
923
- /** Used to track methods with placeholder support */
924
- exports . placeholder = {
925
- 'bind' : true ,
926
- 'bindKey' : true ,
927
- 'curry' : true ,
928
- 'curryRight' : true ,
929
- 'partial' : true ,
930
- 'partialRight' : true
931
- } ;
932
-
933
919
/** Used to map real names to their aliases. */
934
920
exports . realToAlias = ( function ( ) {
935
921
var hasOwnProperty = Object . prototype . hasOwnProperty ,
0 commit comments