rem: reply += element; reply += ":"; reply += marshalled; reply += ", "; 
add: referto[data] = name;  if (data instanceof Array) { var reply = "Array:[" for (var i = 0; i < data.length; i++) { if (i != 0) { reply += ","; }  dwrParamCount++; var childName = "c"+dwrParamCount; dwrMarshall(output, referto, data[i], childName); reply += "reference:"; reply += childName; } reply += "]";  output[name] = reply; 
context: function dwrMarshall(data){    if (data == null)    {        return "null";    }    switch (typeof data)    {    case "boolean":        return data;    case "number":        return data;    case "string":        return encodeURIComponent(data);    case "object":        if (data instanceof Boolean)        {            return data;        }        else if (data instanceof Number)        {            return data;        }        else if (data instanceof String)        {            return encodeURIComponent(data);        }        else if (data instanceof Date)        {            return "[ " + data.getUTCFullYear() + ", " + data.getUTCMonth() + ", " + data.getUTCDate() + ", " + data.getUTCHours() + ", " + data.getUTCMinutes() + ", " + data.getUTCSeconds() + ", " + data.getUTCMilliseconds() + "]";        }        else if (data instanceof Array)        {            var reply = "["            for (var i = 0; i < data.length; i++)            {                if (i != 0)                {                    reply += ",";                }                var marshalled = "" + dwrMarshall(data[i]);                marshalled = marshalled.replace(/,/, "%2c");                marshalled = marshalled.replace(/\[/, "%5b");                marshalled = marshalled.replace(/\]/, "%5d");                reply += marshalled;            }            reply += "]";            return reply;        }        else        {             // treat anything else as an associative array (map)            var reply = "{"            for (element in data)            {                var marshalled = dwrMarshall(data[element]);                reply += element;                reply += ":";                reply += marshalled;                reply += ", ";            }            reply = reply.substring(0, reply.length - 2);            reply += "}";            return reply;        }    default:        return data;    }    return data;}
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/7547063298291f41840aee0b03582a3f6bc04cd6/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js