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/support.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/support.js')
-rw-r--r-- | src/support.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support.js b/src/support.js index b11f84794..429825083 100644 --- a/src/support.js +++ b/src/support.js @@ -75,11 +75,11 @@ root.removeChild( script ); if ( div.attachEvent && div.fireEvent ) { - div.attachEvent("onclick", function(){ + div.attachEvent("onclick", function click(){ // Cloning a node shouldn't copy over any // bound event handlers (IE does this) jQuery.support.noCloneEvent = false; - div.detachEvent("onclick", arguments.callee); + div.detachEvent("onclick", click); }); div.cloneNode(true).fireEvent("onclick"); } |