|
56 |
// in a closed TitlePane |
56 |
// in a closed TitlePane |
57 |
|
57 |
|
58 |
// iterate over all tabs |
58 |
// iterate over all tabs |
59 |
array.forEach(this.getChildren(), function(ipage) { |
59 |
array.forEach(this.getDescendants(), function(iwidget) { |
60 |
// find all widgets that inherit from dojox.grid._Grid on the tab |
60 |
if (tools.inheritsFrom(iwidget, 'dojox.grid._Grid')) { |
61 |
if (ipage.getChildren) { |
61 |
// hook to changes for 'open' |
62 |
array.forEach(ipage.getChildren(), function(iwidget) { |
62 |
this.own(this.watch('open', function(attr, oldVal, newVal) { |
63 |
if (tools.inheritsFrom(iwidget, 'dojox.grid._Grid')) { |
63 |
if (newVal) { |
64 |
// hook to changes for 'open' |
64 |
// recall startup when the TitelPane gets shown |
65 |
this.own(this.watch('open', function(attr, oldVal, newVal) { |
65 |
iwidget.startup(); |
66 |
if (newVal) { |
|
|
67 |
// recall startup when the TitelPane gets shown |
68 |
iwidget.startup(); |
69 |
} |
70 |
})); |
71 |
} |
66 |
} |
72 |
}, this); |
67 |
})); |
73 |
} |
68 |
} |
74 |
}, this); |
69 |
}, this); |
75 |
} |
70 |
} |