if(this.command.length){ var label = this.getLabel(this.command); var className = this.iconClassPrefix+" "+this.iconClassPrefix + this.command.charAt(0).toUpperCase() + this.command.substr(1); if(!this.button){ props = dojo.mixin({ label: label, showLabel: false, iconClass: className, dropDown: this.dropDown, tabIndex: "-1" }, props || {}); this.button = new this.buttonClass(props); } }