if(dojo.isString(config)){ config = { value: config }; } var widget = new this.widgetCtor(config); this.children.push(widget); dojo.place(widget.domNode, this._srcParent, this._srcIndex+idx);