aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-12-06 17:19:30 -0500
committerJohn Resig <jeresig@gmail.com>2010-12-06 17:19:30 -0500
commitb00ab56160a75c6aa3fdd21807c951ac8098aabc (patch)
treee0773b99da45be81ab64f18dd9f3ba51fab753c7 /src/event.js
parent0276b9de7ea77737266d98cf4c6c84bf0b87ab46 (diff)
parent89b771daefcd0cc6a31b7285b06cbc4e5ecede57 (diff)
downloadjquery-b00ab56160a75c6aa3fdd21807c951ac8098aabc.tar.gz
jquery-b00ab56160a75c6aa3fdd21807c951ac8098aabc.zip
Merge branch 't6398' of https://github.com/jitter/jquery into jitter-t6398
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 58a695373..fd470e718 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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;