aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-22 06:19:22 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-22 06:19:22 +0000
commitf2f399dcd552e73f68c9e8adfe26ef7995724cb3 (patch)
tree2eb7e62c4464256c51797048c5469c1c3296d713 /src/selector/selector.js
parentfc3e180465a88558321b6550ac4692d7cc4b281f (diff)
downloadjquery-f2f399dcd552e73f68c9e8adfe26ef7995724cb3.tar.gz
jquery-f2f399dcd552e73f68c9e8adfe26ef7995724cb3.zip
Fixed use of eval() and new Function() to work within the correct scope (and not throw errors).
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r--src/selector/selector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index cf231111e..bd8c7912d 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -405,7 +405,7 @@ jQuery.extend({
f = jQuery.expr[m[1]][m[2]];
// Build a custom macro to enclose it
- eval("f = function(a,i){return " + f + "}");
+ f = eval("false||function(a,i){return " + f + "}");
// Execute it against the current filter
r = jQuery.grep( r, f, not );