[Dojo-checkins] [dojo] #4920: _Container.addChild() tests for _started attribute

dojo trac at dojotoolkit.org
Sat Nov 3 19:43:40 UTC 2007


#4920: _Container.addChild() tests for _started attribute
--------------------+-------------------------------------------------------
 Reporter:  rcoup   |        Owner:     
     Type:  defect  |       Status:  new
 Priority:  normal  |    Milestone:  1.1
Component:  Dijit   |      Version:  0.9
 Severity:  normal  |   Resolution:     
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by bill):

 Replying to [comment:4 rcoup]:
 > hrm. Slightly more complicated than I expected.
 >
 > Is startup() guaranteed to only be called once? In what cases would it
 ever be called more than once?

 I don't remember the exact sequence here but sometimes it was being called
 more than once.   That's why we have the _started flag.

 The second option looks good to me (except you need braces on your if()
 statement as per dojo coding standards.

-- 
Ticket URL: <http://trac.dojotoolkit.org/ticket/4920#comment:5>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list