add:  if (props.insertAtIndex != undefined) { insertAtIndex = props.insertAtIndex; delete props.insertAtIndex; } 
context:     init: function(insertAtIndex, props) {        var styleClass = props.styleClass;        var style = tw_Component.defaultStyles[styleClass];        delete props.styleClass;        this.setStyle("backgroundColor", style["backgroundColor"]);        this.setStyle("borderType", style["borderType"]);        this.setStyle("borderSize", style["borderSize"]);        this.setStyle("borderColor", style["borderColor"]);        this.setStyle("fontFamily", style["fontFamily"]);        this.setStyle("fontColor", style["fontColor"]);        this.setStyle("fontSize", style["fontSize"]);        this.setStyle("fontItalic", style["fontItalic"]);        this.setStyle("fontBold", style["fontBold"]);        this.setStyle("fontUnderline", style["fontUnderline"]);                for (var prop in props) {            this[this.__setters__[prop]](props[prop]);        }                if (this._parent != null) {            if (this._parent instanceof tw_BaseContainer) {                if (this instanceof tw_Menu && this._windowMenu) {                    this._parent.setMenu(this);                } else {                    this._parent.addComponent(insertAtIndex, this);                }            } else if (this._parent instanceof tw_DropDown || this._parent instanceof tw_GridBox) {                this._parent.getBaseWindow()._box.appendChild(this._box);            } else {                alert("No known way to attach this component:" + this._box.className + " to the DOM");            }        } else {            document.body.appendChild(this._box);        }                //TODO: We shouldn't have to call this a second time, but it appears that either a browser        //bug is requiring that we do, or there is a glitch in the framework.        this.setStyle("backgroundColor", style["backgroundColor"]);        this._inited = true;    },
meta: 5515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5515/24e02545b42a490e7acd2cb4e45328f823b29e40/Component.js/clean/src/thinwire/render/web/resources/Component.js