rem: swapDOM: function (dest, src) { /***  Replace dest in a DOM tree with src, returning src  @param dest: a DOM element to be replaced  @param src: the DOM element to replace it with or null if the DOM element should be removed  @rtype: a DOM element (src)  ***/ var self = MochiKit.DOM; dest = self.getElement(dest); var parent = dest.parentNode; if (src) { src = self.getElement(src); parent.replaceChild(src, dest); } else { parent.removeChild(dest); } return src; }, 
add: },swapDOM:function(dest,src){ var self=MochiKit.DOM; dest=self.getElement(dest); var _351=dest.parentNode; if(src){ src=self.getElement(src); _351.replaceChild(src,dest); }else{ _351.removeChild(dest); } return src; },getElement:function(id){ 
context:     swapDOM: function (dest, src) {        /***            Replace dest in a DOM tree with src, returning src            @param dest: a DOM element to be replaced            @param src: the DOM element to replace it with                        or null if the DOM element should be removed            @rtype: a DOM element (src)        ***/        var self = MochiKit.DOM;        dest = self.getElement(dest);        var parent = dest.parentNode;        if (src) {            src = self.getElement(src);            parent.replaceChild(src, dest);        } else {            parent.removeChild(dest);        }        return src;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js