Changeset 14509

Show
Ignore:
Timestamp:
07/18/08 09:59:42 (6 months ago)
Author:
doughays
Message:

Fixes #7199. Added doc reference to focusNode. Cleaned up code refernces to focusNode.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/InlineEditBox.js

    r14501 r14509  
    2525        //              dijit.Editor (for editing HTML) or a Slider (for adjusting a number). 
    2626        //              An edit widget must support the following API to be used: 
    27         //              String getDisplayedValue() OR String getValue() 
    28         //              void setDisplayedValue(String) OR void setValue(String) 
    29         //              void focus() 
     27        //                      String getDisplayedValue() OR String getValue() 
     28        //                      void setDisplayedValue(String) OR void setValue(String) 
     29        //                      void focus() 
     30        //                      DOM-node focusNode = node containing editable text 
    3031        // 
    3132        // editing: Boolean 
     
    109110 
    110111                this.disabled = disabled; 
    111                 dijit.setWaiState(this.focusNode || this.domNode, "disabled", disabled); 
     112                dijit.setWaiState(this.domNode, "disabled", disabled); 
    112113        }, 
    113114 
     
    304305                // prevent Dialog from closing when the user just wants to revert the value in the edit widget), 
    305306                // so this is the only way we can see the key press event. 
    306                 if(dojo.isFunction(ew.onKeyPress)){ 
    307                         this.connect(ew, "onKeyPress", "_onKeyPress"); 
    308                 }else{ 
    309                         this.connect(ew.focusNode || ew.domNode, "onkeypress", "_onKeyPress"); 
    310                 } 
     307                this.connect(ew, "onKeyPress", "_onKeyPress"); 
    311308 
    312309                // priorityChange=false will prevent bogus onChange event