Changeset 13537

Show
Ignore:
Timestamp:
05/02/08 03:36:45 (7 months ago)
Author:
bill
Message:

Fix bug where closing a tree node would hide the node itself rather than just it's children; regression from [13521].

TreeNode? is unusual in that it defines containerNode lazily, so the code in _Container to set containerNode automatically was actually messing things up.

Fixes #6673, refs #6604.
!strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Tree.js

    r13471 r13537  
    5050                        dijit.setWaiState(this.labelNode, "expanded", this.isExpanded); 
    5151                } 
     52 
     53                // Counteract effects from _Container.buildRendering().  We actually want to 
     54                // leave containerNode as null (or undefined) until when/if we get children 
     55                this.containerNode = null; 
    5256        }, 
    5357