rem: coerceToDOM: function (node, ctx) { /***  Used internally by createDOM, coerces a node to null, a DOM object, or an iterable.  ***/  var im = MochiKit.Iter; var self = MochiKit.DOM; var iter = im.iter; var repeat = im.repeat; var imap = im.imap; var domConverters = self.domConverters; var coerceToDOM = self.coerceToDOM; var NotFound = MochiKit.Base.NotFound; while (true) { if (typeof(node) == 'undefined' || node === null) { return null; } if (typeof(node.nodeType) != 'undefined' && node.nodeType > 0) { return node; } if (typeof(node) == 'number' || typeof(node) == 'bool') { node = node.toString();  } if (typeof(node) == 'string') { return self._document.createTextNode(node); } if (typeof(node.toDOM) == 'function') { node = node.toDOM(ctx); continue; } if (typeof(node) == 'function') { node = node(ctx); continue; }   var iterNodes = null; try { iterNodes = iter(node); } catch (e) {  } if (iterNodes) { return imap( coerceToDOM, iterNodes, repeat(ctx) ); }   try { node = domConverters.match(node, ctx); continue; } catch (e) { if (e != NotFound) { throw e; } }   return self._document.createTextNode(node.toString()); }  return undefined; }, 
add: },coerceToDOM:function(node,ctx){ var im=MochiKit.Iter; var self=MochiKit.DOM; var iter=im.iter; var _332=im.repeat; var imap=im.imap; var _334=self.domConverters; var _335=self.coerceToDOM; var _336=MochiKit.Base.NotFound; while(true){ if(typeof (node)=="undefined"||node===null){ return null; } if(typeof (node.nodeType)!="undefined"&&node.nodeType>0){ return node; } if(typeof (node)=="number"||typeof (node)=="bool"){ node=node.toString(); } if(typeof (node)=="string"){ return self._document.createTextNode(node); } if(typeof (node.toDOM)=="function"){ node=node.toDOM(ctx); continue; } if(typeof (node)=="function"){ node=node(ctx); continue; } var _337=null; try{ _337=iter(node); } catch(e){ } if(_337){ return imap(_335,_337,_332(ctx)); } try{ node=_334.match(node,ctx); continue; } catch(e){ if(e!=_336){ throw e; } } return self._document.createTextNode(node.toString()); } return undefined; },setNodeAttribute:function(node,attr,_339){ 
context:     coerceToDOM: function (node, ctx) {        /***            Used internally by createDOM, coerces a node to null, a DOM object,            or an iterable.        ***/        var im = MochiKit.Iter;        var self = MochiKit.DOM;        var iter = im.iter;        var repeat = im.repeat;        var imap = im.imap;        var domConverters = self.domConverters;        var coerceToDOM = self.coerceToDOM;        var NotFound = MochiKit.Base.NotFound;        while (true) {            if (typeof(node) == 'undefined' || node === null) {                return null;            }            if (typeof(node.nodeType) != 'undefined' && node.nodeType > 0) {                return node;            }            if (typeof(node) == 'number' || typeof(node) == 'bool') {                node = node.toString();                // FALL THROUGH            }            if (typeof(node) == 'string') {                return self._document.createTextNode(node);            }            if (typeof(node.toDOM) == 'function') {                node = node.toDOM(ctx);                continue;            }            if (typeof(node) == 'function') {                node = node(ctx);                continue;            }            // iterable            var iterNodes = null;            try {                iterNodes = iter(node);            } catch (e) {                // pass            }            if (iterNodes) {                return imap(                    coerceToDOM,                    iterNodes,                    repeat(ctx)                );            }            // adapter            try {                node = domConverters.match(node, ctx);                continue;            } catch (e) {                if (e != NotFound) {                    throw e;                }            }            // fallback            return self._document.createTextNode(node.toString());        }        // mozilla warnings aren't too bright        return undefined;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js