aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2011-02-07 10:56:48 -0600
committerColin Snover <github.com@zetafleet.com>2011-02-07 10:56:48 -0600
commit534dbd660eaefbbc5827b1b61ba384e768562086 (patch)
tree4c4d1dd98f72435174e875834460b58d20b521ad
parent8805f1373d321d7e80e1984bd7e9a3e5d8e50943 (diff)
downloadjquery-534dbd660eaefbbc5827b1b61ba384e768562086.tar.gz
jquery-534dbd660eaefbbc5827b1b61ba384e768562086.zip
Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052. 1.5-stable
-rw-r--r--src/support.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js
index 4807ce27e..8b60abd26 100644
--- a/src/support.js
+++ b/src/support.js
@@ -114,7 +114,7 @@
jQuery.support.deleteExpando = false;
}
- if ( div.attachEvent && div.fireEvent ) {
+ if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
div.attachEvent("onclick", function click() {
// Cloning a node shouldn't copy over any
// bound event handlers (IE does this)