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 5dc7bb7233efee125922cc63e286c96a73b9326c
Showing with 1 addition and 2 deletions.
  1. +1 −2 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 &&

0 comments on commit 5dc7bb7

Please sign in to comment.
You can’t perform that action at this time.