Changeset 12822

Show
Ignore:
Timestamp:
03/02/08 22:27:15 (10 months ago)
Author:
bill
Message:

Don't check this.selected to see if a ContentPane? is shown or not.
If StackContainer/TabContainer? is included on the page then every ContentPane?
has a "selected" attribute, even if it isn't a child of a StackContainer?.
Fixes #6048, refs #5697.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/layout/ContentPane.js

    r12817 r12822  
    242242        }, 
    243243 
    244         _isOpen: function(){ 
     244        _isShown: function(){ 
    245245                // summary: returns true if the content is currently shown 
    246246                if("open" in this){ 
    247247                        return this.open;               // for TitlePane, etc. 
    248                 }else if("selected" in this){ 
    249                         return this.selected;   // AccordionContainer, TabContainer 
    250248                }else{ 
    251249                        var node = this.domNode; 
     
    267265                //                                              domNode display != 'none', isLoaded must be false 
    268266 
    269                 var displayState = this._isOpen(); 
     267                var displayState = this._isShown(); 
    270268 
    271269                if(this.href &&