Merge branch 'master' of http://github.com/petersendidit/jquery into petersendidit-master

This commit is contained in:
John Resig 2010-10-09 18:04:54 -04:00
commit 10065a8deb

View file

@ -706,6 +706,7 @@ if ( !jQuery.support.submitBubbles ) {
var elem = e.target, type = elem.type;
if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
e.liveFired = undefined;
return trigger( "submit", this, arguments );
}
});
@ -714,6 +715,7 @@ if ( !jQuery.support.submitBubbles ) {
var elem = e.target, type = elem.type;
if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
e.liveFired = undefined;
return trigger( "submit", this, arguments );
}
});