From be9302b710416715b9d278f589be99fa6f9e7cb8 Mon Sep 17 00:00:00 2001 From: David Serduke Date: Wed, 19 Dec 2007 18:47:01 +0000 Subject: [PATCH] Fixed #2077 by adding a var to make it a local variable instead of initializing a global one. --- src/selector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/selector.js b/src/selector.js index 51f165a0..1badc693 100644 --- a/src/selector.js +++ b/src/selector.js @@ -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++ ) {