git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No longer use arguments.callee or RegExp (use new RegExp, instead) for ES 3.1 and...
[jquery.git]
/
src
/
support.js
diff --git
a/src/support.js
b/src/support.js
index
b11f847
..
4298250
100644
(file)
--- a/
src/support.js
+++ b/
src/support.js
@@
-75,11
+75,11
@@
root.removeChild( script );
if ( div.attachEvent && div.fireEvent ) {
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;
// 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");
}
});
div.cloneNode(true).fireEvent("onclick");
}