diff options
author | John Resig <jeresig@gmail.com> | 2009-02-26 18:00:41 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-02-26 18:00:41 +0000 |
commit | 985856b823b1648bffc3fd63c1faf836d0ddaf7c (patch) | |
tree | 61c0dc0fde655abb8c05c75e617393b4606ef4d3 /src/selector.js | |
parent | 410e13b40097fa6b26ce9a27f865ff258efa23b4 (diff) | |
download | jquery-985856b823b1648bffc3fd63c1faf836d0ddaf7c.tar.gz jquery-985856b823b1648bffc3fd63c1faf836d0ddaf7c.zip |
No longer use arguments.callee or RegExp (use new RegExp, instead) for ES 3.1 and Caja compatibility. Fixes jQuery bug #4251.
Diffstat (limited to 'src/selector.js')
-rw-r--r-- | src/selector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector.js b/src/selector.js index e58b2571c..3bfc5f5f2 100644 --- a/src/selector.js +++ b/src/selector.js @@ -659,7 +659,7 @@ var Expr = Sizzle.selectors = { var origPOS = Expr.match.POS; for ( var type in Expr.match ) { - Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source ); + Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source ); } var makeArray = function(array, results) { |