Changeset 12520

Show
Ignore:
Timestamp:
02/19/08 12:35:50 (11 months ago)
Author:
becky
Message:

refs #5830 attach the onfocus event in the template rather than via dojo.connect in the code. !strict

Location:
dijit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Tree.js

    r12514 r12520  
    5454                        dijit.setWaiState(this.labelNode, "expanded", this.isExpanded); 
    5555                } 
    56                 this.connect(this.labelNode, "onfocus", "_onNodeFocus"); 
    5756        }, 
    5857 
  • dijit/trunk/_tree/Node.html

    r12399 r12520  
    77                ><div dojoAttachPoint="contentNode" class="dijitTreeContent" waiRole="presentation"> 
    88                        <div dojoAttachPoint="iconNode" class="dijitInline dijitTreeIcon" waiRole="presentation"></div> 
    9                         <span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false"></span> 
     9                        <span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false" dojoAttachEvent="onfocus:_onNodeFocus"></span> 
    1010                </div 
    1111        ></div>