rem: m.nodeWalk(elem, function (elem) { var name = elem.name; if (m.isNotEmpty(name)) { var tagName = elem.nodeName; if (tagName == "INPUT" && (elem.type == "radio" || elem.type == "checkbox") && !elem.checked ) { return null; } if (tagName == "SELECT") { if (elem.selectedIndex >= 0) { var opt = elem.options[elem.selectedIndex]; names.push(name); values.push((opt.value) ? opt.value : opt.text); return null; }  names.push(name); values.push(""); return null; } if (tagName == "FORM" || tagName == "P" || tagName == "SPAN" || tagName == "DIV" ) { return elem.childNodes; } names.push(name); values.push(elem.value || ''); return null; } return elem.childNodes; }); 
add: m.nodeWalk(elem,function(elem){ var name=elem.name; if(m.isNotEmpty(name)){ var _323=elem.nodeName; if(_323=="INPUT"&&(elem.type=="radio"||elem.type=="checkbox")&&!elem.checked){ return null; } if(_323=="SELECT"){ if(elem.selectedIndex>=0){ var opt=elem.options[elem.selectedIndex]; _321.push(name); _322.push((opt.value)?opt.value:opt.text); return null; } _321.push(name); _322.push(""); return null; } if(_323=="FORM"||_323=="P"||_323=="SPAN"||_323=="DIV"){ return elem.childNodes; } _321.push(name); _322.push(elem.value||""); return null; } return elem.childNodes; }); 
context:         m.nodeWalk(elem, function (elem) {            var name = elem.name;            if (m.isNotEmpty(name)) {                var tagName = elem.nodeName;                if (tagName == "INPUT"                    && (elem.type == "radio" || elem.type == "checkbox")                    && !elem.checked                ) {                    return null;                }                if (tagName == "SELECT") {                    if (elem.selectedIndex >= 0) {                        var opt = elem.options[elem.selectedIndex];                        names.push(name);                        values.push((opt.value) ? opt.value : opt.text);                        return null;                    }                    // no form elements?                    names.push(name);                    values.push("");                    return null;                }                if (tagName == "FORM" || tagName == "P" || tagName == "SPAN"                    || tagName == "DIV"                ) {                    return elem.childNodes;                }                names.push(name);                values.push(elem.value || '');                return null;            }            return elem.childNodes;        });
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js