aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-08-31 17:26:31 +0000
committerJohn Resig <jeresig@gmail.com>2006-08-31 17:26:31 +0000
commitbcc8a837055fe720579628d758b7034d6b520f2e (patch)
tree19718a3ed06c8853dcf27d81d8d914c4910f69d4
parenta2206b784e77434c77259e2d46bd53ec1656070c (diff)
downloadjquery-bcc8a837055fe720579628d758b7034d6b520f2e.tar.gz
jquery-bcc8a837055fe720579628d758b7034d6b520f2e.zip
Broke >, ~, +, etc - fixed.1.0.11.0
-rw-r--r--src/jquery/jquery.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index f64835a08..175da4702 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1110,7 +1110,7 @@ jQuery.extend({
* @test t( "Adjacent", "p + p", ["ap","en","sap"] );
* @test t( "Comma, Child, and Adjacent", "a + a, code > a", ["groups","anchor1","anchor2"] );
* @test t( "First Child", "p:first-child", ["firstp","sndp"] );
- * @test t( "Attribute Exists", "a[@title]", ["google"] );
+ * @test t( "Attribute Exists", "a[@title]", ["google"] );
* @test t( "Attribute Exists", "*[@title]", ["google"] );
* @test t( "Attribute Exists", "[@title]", ["google"] );
* @test t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );
@@ -1238,11 +1238,12 @@ jQuery.extend({
}
}
- if ( t ) {
- var val = jQuery.filter(t,r);
- ret = r = val.r;
- t = jQuery.trim(val.t);
- }
+ }
+
+ if ( t ) {
+ var val = jQuery.filter(t,r);
+ ret = r = val.r;
+ t = jQuery.trim(val.t);
}
}