rem: updateNodeAttributes: function (node, attrs) { var elem = node; var self = MochiKit.DOM; if (typeof(node) == 'string') { elem = self.getElement(node); } if (attrs) { var updatetree = MochiKit.Base.updatetree; if (self.attributeArray.compliant) {  for (var k in attrs) { var v = attrs[k]; if (typeof(v) == 'object' && typeof(elem[k]) == 'object') { updatetree(elem[k], v); } else if (k.substring(0, 2) == "on") { if (typeof(v) == "string") { v = new Function(v); } elem[k] = v; } else { elem.setAttribute(k, v); } } } else {  var renames = self.attributeArray.renames; for (k in attrs) { v = attrs[k]; var renamed = renames[k]; if (k == "style" && typeof(v) == "string") { elem.style.cssText = v; } else if (typeof(renamed) == "string") { elem[renamed] = v; } else if (typeof(elem[k]) == 'object' && typeof(v) == 'object') { updatetree(elem[k], v); } else if (k.substring(0, 2) == "on") { if (typeof(v) == "string") { v = new Function(v); } elem[k] = v; } else { elem.setAttribute(k, v); } } } } return elem; }, 
add: },updateNodeAttributes:function(node,_341){ var elem=node; var self=MochiKit.DOM; if(typeof (node)=="string"){ elem=self.getElement(node); } if(_341){ var _342=MochiKit.Base.updatetree; if(self.attributeArray.compliant){ for(var k in _341){ var v=_341[k]; if(typeof (v)=="object"&&typeof (elem[k])=="object"){ _342(elem[k],v); }else{ if(k.substring(0,2)=="on"){ if(typeof (v)=="string"){ v=new Function(v); } elem[k]=v; }else{ elem.setAttribute(k,v); } } } }else{ var _343=self.attributeArray.renames; for(k in _341){ v=_341[k]; var _344=_343[k]; if(k=="style"&&typeof (v)=="string"){ elem.style.cssText=v; }else{ if(typeof (_344)=="string"){ elem[_344]=v; }else{ if(typeof (elem[k])=="object"&&typeof (v)=="object"){ _342(elem[k],v); }else{ if(k.substring(0,2)=="on"){ if(typeof (v)=="string"){ v=new Function(v); } elem[k]=v; }else{ elem.setAttribute(k,v); } } } } } } } return elem; },appendChildNodes:function(node){ 
context:     updateNodeAttributes: function (node, attrs) {        var elem = node;        var self = MochiKit.DOM;        if (typeof(node) == 'string') {            elem = self.getElement(node);        }        if (attrs) {            var updatetree = MochiKit.Base.updatetree;            if (self.attributeArray.compliant) {                // not IE, good.                for (var k in attrs) {                    var v = attrs[k];                    if (typeof(v) == 'object' && typeof(elem[k]) == 'object') {                        updatetree(elem[k], v);                    } else if (k.substring(0, 2) == "on") {                        if (typeof(v) == "string") {                            v = new Function(v);                        }                        elem[k] = v;                    } else {                        elem.setAttribute(k, v);                    }                }            } else {                // IE is insane in the membrane                var renames = self.attributeArray.renames;                for (k in attrs) {                    v = attrs[k];                    var renamed = renames[k];                    if (k == "style" && typeof(v) == "string") {                        elem.style.cssText = v;                    } else if (typeof(renamed) == "string") {                        elem[renamed] = v;                    } else if (typeof(elem[k]) == 'object'                            && typeof(v) == 'object') {                        updatetree(elem[k], v);                    } else if (k.substring(0, 2) == "on") {                        if (typeof(v) == "string") {                            v = new Function(v);                        }                        elem[k] = v;                    } else {                        elem.setAttribute(k, v);                    }                }            }        }        return elem;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js