diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-01-28 16:46:52 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-01-28 16:46:52 -0500 |
commit | c746f79cc024df41d9300f3b910a8a55b3c91c3e (patch) | |
tree | e4a3c97b71f0095ee39e7d924e0d3f963f1cf0e2 /src/manipulation.js | |
parent | 633ca9c1610c49dbb780e565f4f1202e1fe20fae (diff) | |
download | jquery-c746f79cc024df41d9300f3b910a8a55b3c91c3e.tar.gz jquery-c746f79cc024df41d9300f3b910a8a55b3c91c3e.zip |
Fix #10878. Clear oldIE special change/submit flags on a clone.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index e3a7f6b12..52a869dae 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -461,6 +461,11 @@ function cloneFixAttributes( src, dest ) { // Event data gets referenced instead of copied if the expando // gets copied too dest.removeAttribute( jQuery.expando ); + + // Clear flags for bubbling special change/submit events, they must + // be reattached when the newly cloned events are first activated + dest.removeAttribute( "_submit_attached" ); + dest.removeAttribute( "_change_attached" ); } jQuery.buildFragment = function( args, nodes, scripts ) { |