X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=d6577e605aed5a1fcd46d27e1ba28a88e32258b8;hb=0935f4a0b1281f5d09685fa08b86944b2421747f;hp=32e850f55292c330d6c8cc59950a8ec4390d9c0d;hpb=77344f4c50386690782ab8ddc92898a918f54f5c;p=jquery.git diff --git a/src/core.js b/src/core.js index 32e850f..d6577e6 100644 --- a/src/core.js +++ b/src/core.js @@ -680,7 +680,7 @@ jQuery.extend({ // Return the named cache data, or the ID for the element return name ? - jQuery.cache[ id ][ name ] : + jQuery.cache[ id ][ name ] || null : id; }, @@ -1163,12 +1163,12 @@ jQuery.extend({ // Also, we need to make sure that the correct elements are being returned // (IE returns comment nodes in a '*' query) if ( jQuery.browser.msie ) { - while ( elem = second[ i++ ] ) + while ( (elem = second[ i++ ]) ) if ( elem.nodeType != 8 ) first[ pos++ ] = elem; } else - while ( elem = second[ i++ ] ) + while ( (elem = second[ i++ ]) ) first[ pos++ ] = elem; return first;