aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event.js4
-rw-r--r--src/manipulation.js1
2 files changed, 2 insertions, 3 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
diff --git a/src/manipulation.js b/src/manipulation.js
index 8b338a5b4..ee5a84c51 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -467,7 +467,6 @@ function cloneFixAttributes( src, dest ) {
// 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" );
}