| 207 | | // Call startup on each top level instance if it makes sense (as for |
| 208 | | // widgets). Parent widgets will recursively call startup on their |
| 209 | | // (non-top level) children |
| 210 | | d.forEach(thelist, function(instance){ |
| 211 | | if( instance && |
| 212 | | instance.startup && |
| 213 | | !instance._started && |
| 214 | | (!instance.getParent || !instance.getParent()) |
| 215 | | ){ |
| 216 | | instance.startup(); |
| 217 | | } |
| 218 | | }); |
| | 208 | if(doStartup||arguments.length==1){ |
| | 209 | // Call startup on each top level instance if it makes sense (as for |
| | 210 | // widgets). Parent widgets will recursively call startup on their |
| | 211 | // (non-top level) children |
| | 212 | d.forEach(thelist, function(instance){ |
| | 213 | if( instance && |
| | 214 | instance.startup && |
| | 215 | !instance._started && |
| | 216 | (!instance.getParent || !instance.getParent()) |
| | 217 | ){ |
| | 218 | instance.startup(); |
| | 219 | } |
| | 220 | }); |
| | 221 | } |