Side navigation
Ticket #3249: serialize.diff
File serialize.diff, 0.4 KB (added by nathanhammond, August 12, 2008 10:03PM UTC)
Patch
Index: jquery/src/ajax.js
===================================================================
--- jquery/src/ajax.js (revision 5825)
+++ jquery/src/ajax.js (working copy)
@@ -66,7 +66,7 @@
},
serializeArray: function() {
return this.map(function(){
- return jQuery.nodeName(this, "form") ?
+ return this.elements ?
jQuery.makeArray(this.elements) : this;
})
.filter(function(){
Download in other formats:
Original Format
File serialize.diff, 0.4 KB (added by nathanhammond, August 12, 2008 10:03PM UTC)
Patch
Index: jquery/src/ajax.js
===================================================================
--- jquery/src/ajax.js (revision 5825)
+++ jquery/src/ajax.js (working copy)
@@ -66,7 +66,7 @@
},
serializeArray: function() {
return this.map(function(){
- return jQuery.nodeName(this, "form") ?
+ return this.elements ?
jQuery.makeArray(this.elements) : this;
})
.filter(function(){