Make sure custom events named "submit" can be bound to non DOM elements in IE too. Fixes 6398.
This commit is contained in:
parent
0838bdf52c
commit
89b771daef
2 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue