diff options
author | Jason Moon <jmoon@socialcast.com> | 2012-05-18 16:30:28 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-05-18 16:34:30 -0400 |
commit | e93f2a89e277d3fffbc15b4ef82ebc3ac6a840f5 (patch) | |
tree | 4e723f589cb175b44adc07d316e6c7dd21a7f682 /src/event.js | |
parent | 6bf3f20d4e0f69ab14702152880a0574623490e2 (diff) | |
download | jquery-e93f2a89e277d3fffbc15b4ef82ebc3ac6a840f5.tar.gz jquery-e93f2a89e277d3fffbc15b4ef82ebc3ac6a840f5.zip |
Fix #11649. Preserve oldIE submit flag when cloning, closes gh-772.
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index 6351d0b53..458eafbc2 100644 --- a/src/event.js +++ b/src/event.js @@ -772,11 +772,11 @@ if ( !jQuery.support.submitBubbles ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !form._submit_attached ) { + if ( form && !jQuery._data( form, "_submit_attached" ) ) { jQuery.event.add( form, "submit._submit", function( event ) { event._submit_bubble = true; }); - form._submit_attached = true; + jQuery._data( form, "_submit_attached", true ); } }); // return undefined since we don't need an event listener |