git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated the documentation parser to work with categories. Additionally, I updated...
[jquery.git]
/
build
/
js
/
xml.js
diff --git
a/build/js/xml.js
b/build/js/xml.js
index
cc94eb7
..
b2b09c6
100644
(file)
--- a/
build/js/xml.js
+++ b/
build/js/xml.js
@@
-9,7
+9,7
@@
Object.toXML = function( obj, tag ) {
var p = "", child = "";
for ( var i in obj )
var p = "", child = "";
for ( var i in obj )
- if ( obj[i].constructor == Array || /</.test(obj[i] + "") || Object.toXML.force[i] )
+ if ( obj[i].constructor != String || /</.test(obj[i] + "") || Object.toXML.force[i] )
child += Object.toXML( obj[i], i );
else
p += " " + i + "='" + (obj[i] + "").replace(/'/g, "'") + "'";
child += Object.toXML( obj[i], i );
else
p += " " + i + "='" + (obj[i] + "").replace(/'/g, "'") + "'";