rem: this.renderDOM = eval(js); }, 
add: this.renderDOM = eval(js); }, 
context: 	compileDOM: function()	{		var path = [];		var blocks = [];        this.domArgs = [];        path.embedIndex = 0;        path.loopIndex = 0;		path.staticIndex = 0;		path.renderIndex = 0;		var nodeCount = this.generateDOM(path, blocks, this.domArgs);				var fnBlock = ['(function (root, context, o'];		for (var i = 0; i < path.staticIndex; ++i)			fnBlock.push(', ', 's'+i);		for (var i = 0; i < path.renderIndex; ++i)			fnBlock.push(', ', 'd'+i);		fnBlock.push(') {');		for (var i = 0; i < path.loopIndex; ++i)			fnBlock.push('var l', i, ' = 0;');		for (var i = 0; i < path.embedIndex; ++i)			fnBlock.push('var e', i, ' = 0;');        if (this.subject)            fnBlock.push('with (this) {');        if (this.context)            fnBlock.push('with (context) {');        fnBlock.push(blocks.join(""));                if (this.subject)            fnBlock.push('}');        if (this.context)            fnBlock.push('}');        fnBlock.push('return ', nodeCount, ';');		fnBlock.push('})');        function __bind__(object, fn)        {            return function(event) { return fn.apply(object, [event]); }        }		function __link__(node, tag, args)		{            tag.tag.compile();    		var domArgs = [node, tag.tag.context, 0];    		domArgs.push.apply(domArgs, tag.tag.domArgs);    		domArgs.push.apply(domArgs, args);		    return tag.tag.renderDOM.apply(tag.tag.subject, domArgs);        }                var self = this;		function __loop__(iter, fn)		{		    var nodeCount = 0;		    for (var i = 0; i < iter.length; ++i)		    {		        iter[i][0] = i;		        iter[i][1] = nodeCount;		        nodeCount += fn.apply(this, iter[i]);		        //ddd("nodeCount", nodeCount);		    }		    return nodeCount;		}        function __path__(parent, offset)        {            //ddd("offset", arguments[2])            var root = parent;                        for (var i = 2; i < arguments.length; ++i)            {                var index = arguments[i];                if (i == 3)                    index += offset;                                if (index == -1)                    parent = parent.parentNode;                else                    parent = parent.childNodes[index];            }                        //ddd(arguments[2], root, parent);            return parent;        }        		var js = fnBlock.join("");        //ddd(js.replace(/(\;|\{)/g, "$1\n"));		this.renderDOM = eval(js);	},
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/e1d42ad3fad63b72826a4e2ed0726866484c9ac3/domplate.js/buggy/extension/content/firebug/domplate.js