Changeset 12741

Show
Ignore:
Timestamp:
02/27/08 08:34:46 (11 months ago)
Author:
doughays
Message:

Fixes #6000. Removed reset processing for Buttons.

Location:
dijit/trunk/form
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/Button.js

    r12732 r12741  
    3333        templatePath: dojo.moduleUrl("dijit.form", "templates/Button.html"), 
    3434 
     35        _onChangeMonitor: '', 
    3536        // TODO: set button's title to this.containerNode.innerText 
    3637 
  • dijit/trunk/form/_FormWidget.js

    r12735 r12741  
    238238                if(this.setValue && !this._getValueDeprecated){ 
    239239                        this.setValue(this._resetValue, true); 
    240                 }else{ 
     240                }else if(this._onChangeMonitor){ 
    241241                        this.setAttribute(this._onChangeMonitor, (this._resetValue !== undefined && this._resetValue !== null)? this._resetValue : ''); 
    242242                }