X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=e4545335e895823e31fa9712e0857b061121c4d5;hb=5dc7bb7233efee125922cc63e286c96a73b9326c;hp=bda79b50aa9d1887f52b9a3eca33f4796147bcef;hpb=1023cf1d72a3bfe56cbbf8ef89ad96725639e066;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index bda79b5..e454533 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -66,8 +66,7 @@ jQuery.fn.extend({ }, serializeArray: function() { return this.map(function(){ - return jQuery.nodeName(this, "form") ? - jQuery.makeArray(this.elements) : this; + return this.elements ? jQuery.makeArray(this.elements) : this; }) .filter(function(){ return this.name && !this.disabled &&