@@ -450,7 +450,7 @@ function jqLiteInheritedData(element, name, value) {
450450
451451 while ( element ) {
452452 for ( var i = 0 , ii = names . length ; i < ii ; i ++ ) {
453- if ( ( value = jqLite . data ( element , names [ i ] ) ) !== undefined ) return value ;
453+ if ( isDefined ( value = jqLite . data ( element , names [ i ] ) ) ) return value ;
454454 }
455455
456456 // If dealing with a document fragment node with a host element, and no parent, use the host
@@ -694,7 +694,7 @@ forEach({
694694 // in a way that survives minification.
695695 // jqLiteEmpty takes no arguments but is a setter.
696696 if ( fn !== jqLiteEmpty &&
697- ( ( ( fn . length == 2 && ( fn !== jqLiteHasClass && fn !== jqLiteController ) ) ? arg1 : arg2 ) === undefined ) ) {
697+ ( isUndefined ( ( fn . length == 2 && ( fn !== jqLiteHasClass && fn !== jqLiteController ) ) ? arg1 : arg2 ) ) ) {
698698 if ( isObject ( arg1 ) ) {
699699
700700 // we are a write, but the object properties are the key/values
@@ -715,7 +715,7 @@ forEach({
715715 // TODO: do we still need this?
716716 var value = fn . $dv ;
717717 // Only if we have $dv do we iterate over all, otherwise it is just the first element.
718- var jj = ( value === undefined ) ? Math . min ( nodeCount , 1 ) : nodeCount ;
718+ var jj = ( isUndefined ( value ) ) ? Math . min ( nodeCount , 1 ) : nodeCount ;
719719 for ( var j = 0 ; j < jj ; j ++ ) {
720720 var nodeValue = fn ( this [ j ] , arg1 , arg2 ) ;
721721 value = value ? value + nodeValue : nodeValue ;
0 commit comments