Skip to content
Permalink
Browse files
jquery ajax: closes #3249. Slight modification on serializeArray, sho…
…rter and faster code, and allows a custom form object.
  • Loading branch information
flesler committed Aug 13, 2008
1 parent 1023cf1 commit 5dc7bb7
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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 &&

0 comments on commit 5dc7bb7

Please sign in to comment.