rem: currentChildCount = this._divElement.childNodes.length; 
add:  var insertionIndex = this._cellSpacing ? index * 2 : index; var beforeElement = this._divElement.childNodes[insertionIndex];   this._divElement.insertBefore(divElement, beforeElement);   if (this._cellSpacing) { this._divElement.insertBefore(this._spacingPrototype.cloneNode(false), beforeElement); } 
context: EchoAppRender.ColumnSync.prototype._renderAddChild = function(update, child, index) {    var divElement = document.createElement("div");    this._childIdToElementMap[child.renderId] = divElement;    EchoRender.renderComponentAdd(update, child, divElement);    var layoutData = child.getRenderProperty("layoutData");    if (layoutData) {        EchoAppRender.Color.renderComponentProperty(layoutData, "background", null, divElement, "backgroundColor");        EchoAppRender.FillImage.renderComponentProperty(layoutData, "backgroundImage", null, divElement);        EchoAppRender.Insets.renderComponentProperty(layoutData, "insets", null, divElement, "padding");		EchoAppRender.Alignment.renderComponentProperty(layoutData, "alignment", null, divElement, true, this.component);	    var height = layoutData.getProperty("height");	    if (height) {	    	divElement.style.height = EchoAppRender.Extent.toPixels(height, false) + "px";	    }    }        if (index != null) {    	var currentChildCount;        if (this._divElement.childNodes.length >= 3 && this._cellSpacing) {        	currentChildCount = (this._divElement.childNodes.length + 1) / 2;        } else {        	currentChildCount = this._divElement.childNodes.length;        }        if (index == currentChildCount) {	        index = null;        }    }    if (index == null) {        // Full render or append-at-end scenario                // Render spacing div first if index != 0 and cell spacing enabled.        if (this._cellSpacing && this._divElement.firstChild) {            this._divElement.appendChild(this._spacingPrototype.cloneNode(false));        }        // Render child div second.        this._divElement.appendChild(divElement);    } else {        // Partial render insert at arbitrary location scenario (but not at end)        var insertionIndex = this._cellSpacing ? index * 2 : index;        var beforeElement = this._divElement.childNodes[insertionIndex];                // Render child div first.        this._divElement.insertBefore(divElement, beforeElement);                // Then render spacing div if required.        if (this._cellSpacing) {            this._divElement.insertBefore(this._spacingPrototype.cloneNode(false), beforeElement);        }    }};
meta: 600	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/600/4705113f80e2c9e4d43ad240349e3193f4caf648/Render.Column.js/buggy/src/webcontainer/java/nextapp/echo/webcontainer/resource/js/Render.Column.js