Fix #10878. Clear oldIE special change/submit flags on a clone.

This commit is contained in:
Dave Methvin
2012-01-28 16:46:52 -05:00
parent 633ca9c161
commit c746f79cc0
2 changed files with 17 additions and 2 deletions

View File

@@ -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 ) {