Merge branch 't6398' of https://github.com/jitter/jquery into jitter-t6398

This commit is contained in:
John Resig 2010-12-06 17:19:30 -05:00
commit b00ab56160
2 changed files with 11 additions and 4 deletions

View file

@ -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;