rem: dojo.dom.insertAtIndex = function(/* Node */node, /* Element */containingNode, /* number */insertionIndex){   
add: dojo.dom.insertAtIndex = function(/*Node*/node, /*Element*/containingNode, /*number*/insertionIndex){        
context: dojo.dom.insertAtIndex = function(/* Node */node, /* Element */containingNode, /* number */insertionIndex){	//	summary	//	insert node into child nodes nodelist of containingNode at insertionIndex.	var siblingNodes = containingNode.childNodes;	// if there aren't any kids yet, just add it to the beginning	if (!siblingNodes.length){		containingNode.appendChild(node);		return true;	//	boolean	}	// otherwise we need to walk the childNodes	// and find our spot	var after = null;	for(var i=0; i<siblingNodes.length; i++){		var sibling_index = siblingNodes.item(i)["getAttribute"] ? parseInt(siblingNodes.item(i).getAttribute("dojoinsertionindex")) : -1;		if (sibling_index < insertionIndex){			after = siblingNodes.item(i);		}	}	if (after){		// add it after the node in {after}		return dojo.dom.insertAfter(node, after);	//	boolean	}else{		// add it to the start		return dojo.dom.insertBefore(node, siblingNodes.item(0));	//	boolean	}}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js.uncompressed.js/buggy/www/resources/dojo-ajax/dojo.js.uncompressed.js