Updated the documentation parser to work with categories. Additionally, I updated the copyright notice in the jQuery header and removed some extraneous whitespace from jQuery Lite.

This commit is contained in:
John Resig 2006-08-22 05:00:07 +00:00
parent 5ae02b2ecd
commit ccabf2823b
5 changed files with 52 additions and 14 deletions

View file

@ -9,7 +9,7 @@ Object.toXML = function( obj, tag ) {
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, "&apos;") + "'";