X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fselector.js;h=607fa619ae28848e10216faa0ddb255a3855b735;hb=e611289a79d959c1185d002c29093e9809b6dec8;hp=6dcab37fe36b38e7a8a03795eb31b522afea043d;hpb=a3e97062d42ad6ee1c5feff9382a854768703d54;p=jquery.git diff --git a/src/selector.js b/src/selector.js index 6dcab37..607fa61 100644 --- a/src/selector.js +++ b/src/selector.js @@ -92,7 +92,7 @@ jQuery.extend({ find: function( t, context ) { // Quickly handle non-string expressions - if ( typeof t != "string" ) + if ( typeof t !== "string" ) return [ t ]; // check to make sure context is a DOM element or a document @@ -214,7 +214,7 @@ jQuery.extend({ // Do a quick check for the existence of the actual ID attribute // to avoid selecting by the name attribute in IE // also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form - if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id == "string" && oid.id != m[2] ) + if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id === "string" && oid.id != m[2] ) oid = jQuery('[@id="'+m[2]+'"]', elem)[0]; // Do a quick check for node name (where applicable) so @@ -391,10 +391,10 @@ jQuery.extend({ // Otherwise, find the expression to execute } else { var fn = jQuery.expr[ m[1] ]; - if ( typeof fn == "object" ) + if ( typeof fn === "object" ) fn = fn[ m[2] ]; - if ( typeof fn == "string" ) + if ( typeof fn === "string" ) fn = eval("false||function(a,i){return " + fn + ";}"); // Execute it against the current filter