git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery core: fix for [5828]. Put 'function' instead of 'string'.
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
bda79b5
..
e454533
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-66,8
+66,7
@@
jQuery.fn.extend({
},
serializeArray: function() {
return this.map(function(){
},
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 &&
})
.filter(function(){
return this.name && !this.disabled &&