mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 16:54:58 -05:00
Make sure custom events named "submit" can be bound to non DOM elements in IE too. Fixes 6398.
This commit is contained in:
@@ -716,7 +716,7 @@ if ( !jQuery.support.submitBubbles ) {
|
||||
|
||||
jQuery.event.special.submit = {
|
||||
setup: function( data, namespaces ) {
|
||||
if ( this.nodeName.toLowerCase() !== "form" ) {
|
||||
if ( this.nodeName && this.nodeName.toLowerCase() !== "form" ) {
|
||||
jQuery.event.add(this, "click.specialSubmit", function( e ) {
|
||||
var elem = e.target,
|
||||
type = elem.type;
|
||||
|
||||
Reference in New Issue
Block a user