this._setSrcIndex(s); // this._srcIndex = dojo.query(">", this._srcParent).indexOf(s); this.inherited("postscript", arguments); var wc = this.widgetCtor = dojo.getObject(this.widgetClass); this.attrs = dojo.map( wc.prototype.templateString.match(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g|>), function(s){ return s.slice(2, -1); } ); dojo.forEach( this.attrs, function(m){ wc.prototype[m] = ""; } ); this.update();