@@ -369,7 +369,7 @@ function _coerce(containerIn, containerOut, attributes, attribute, dflt, opts) {
369
369
370
370
var attr = nestedProperty ( attributes , attribute ) . get ( ) ;
371
371
if ( dflt === undefined ) dflt = attr . dflt ;
372
- var src = '' ; // i.e. default
372
+ var src = false ;
373
373
374
374
var propIn = nestedProperty ( containerIn , attribute ) ;
375
375
var propOut = nestedProperty ( containerOut , attribute ) ;
@@ -378,7 +378,7 @@ function _coerce(containerIn, containerOut, attributes, attribute, dflt, opts) {
378
378
var template = containerOut . _template ;
379
379
if ( valIn === undefined && template ) {
380
380
valIn = nestedProperty ( template , attribute ) . get ( ) ;
381
- if ( valIn !== undefined && shouldValidate && validate ( valIn , attr ) ) src = 't' ; // template
381
+ src = ( valIn !== undefined ) ;
382
382
383
383
// already used the template value, so short-circuit the second check
384
384
template = 0 ;
@@ -395,15 +395,15 @@ function _coerce(containerIn, containerOut, attributes, attribute, dflt, opts) {
395
395
return {
396
396
inp : valIn ,
397
397
val : valIn ,
398
- src : 'c' // container
398
+ src : true
399
399
} ;
400
400
}
401
401
402
402
var coerceFunction = exports . valObjectMeta [ attr . valType ] . coerceFunction ;
403
403
coerceFunction ( valIn , propOut , dflt , attr ) ;
404
404
405
405
var valOut = propOut . get ( ) ;
406
- if ( valOut !== undefined && shouldValidate && validate ( valIn , attr ) ) src = 'c' ; // container
406
+ src = ( valOut !== undefined ) && shouldValidate && validate ( valIn , attr ) ;
407
407
408
408
// in case v was provided but invalid, try the template again so it still
409
409
// overrides the regular default
@@ -412,7 +412,7 @@ function _coerce(containerIn, containerOut, attributes, attribute, dflt, opts) {
412
412
coerceFunction ( valIn , propOut , dflt , attr ) ;
413
413
valOut = propOut . get ( ) ;
414
414
415
- if ( valOut !== undefined && shouldValidate && validate ( valIn , attr ) ) src = 't' ; // template
415
+ src = ( valOut !== undefined ) && shouldValidate && validate ( valIn , attr ) ;
416
416
}
417
417
418
418
return {
0 commit comments