]> source.dussan.org Git - jquery.git/commitdiff
Fixed #2077 by adding a var to make it a local variable instead of initializing a...
authorDavid Serduke <davidserduke@gmail.com>
Wed, 19 Dec 2007 18:47:01 +0000 (18:47 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Wed, 19 Dec 2007 18:47:01 +0000 (18:47 +0000)
src/selector.js

index 51f165a0c296ee4c577b6039318141815da7bfd1..1badc693299a7a58878f5466fdbf4a1a756d2f0b 100644 (file)
@@ -140,7 +140,8 @@ jQuery.extend({
                                if ( (m = re.exec(t)) != null ) {
                                        r = [];
 
-                                       nodeName = m[2].toUpperCase(), merge = {};
+                                       var merge = {};
+                                       nodeName = m[2].toUpperCase();
                                        m = m[1];
 
                                        for ( var j = 0, rl = ret.length; j < rl; j++ ) {