File tree 1 file changed +1
-16
lines changed
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -38,28 +38,13 @@ export class PanelHandler {
38
38
}
39
39
40
40
/**
41
- * A message hook for child add/ remove messages on the main area dock panel.
41
+ * A message hook for child remove messages on the panel handler .
42
42
*/
43
43
private _panelChildHook = (
44
44
handler : IMessageHandler ,
45
45
msg : Message
46
46
) : boolean => {
47
47
switch ( msg . type ) {
48
- case 'child-added' :
49
- {
50
- const widget = ( msg as Widget . ChildMessage ) . child ;
51
- // If we already know about this widget, we're done
52
- if ( this . _items . find ( v => v . widget === widget ) ) {
53
- break ;
54
- }
55
-
56
- // Otherwise, add to the end by default
57
- if ( this . _items . length > 0 ) {
58
- const rank = this . _items [ this . _items . length - 1 ] . rank ;
59
- this . _items . push ( { widget, rank } ) ;
60
- }
61
- }
62
- break ;
63
48
case 'child-removed' :
64
49
{
65
50
const widget = ( msg as Widget . ChildMessage ) . child ;
You can’t perform that action at this time.
0 commit comments