@@ -123,6 +123,10 @@ class PanelManager {
123123 eventHub . on ( PanelEvent . MOUNT , this . handleMount ) ;
124124 eventHub . on ( PanelEvent . UNMOUNT , this . handleUnmount ) ;
125125 eventHub . on ( PanelEvent . REOPEN , this . handleReopen ) ;
126+ eventHub . on ( PanelEvent . REOPEN_LAST , this . handleReopenLast ) ;
127+ eventHub . on ( PanelEvent . DELETE , this . handleDeleted ) ;
128+ eventHub . on ( PanelEvent . CLOSED , this . handleClosed ) ;
129+ eventHub . on ( PanelEvent . CLOSE , this . handleControlClose ) ;
126130 eventHub . on (
127131 NavigationEvent . CYCLE_TO_NEXT_STACK ,
128132 this . handleCycleToNextStack
@@ -136,10 +140,6 @@ class PanelManager {
136140 NavigationEvent . CYCLE_TO_PREVIOUS_TAB ,
137141 this . handleCycleToPreviousTab
138142 ) ;
139- eventHub . on ( PanelEvent . REOPEN_LAST , this . handleReopenLast ) ;
140- eventHub . on ( PanelEvent . DELETE , this . handleDeleted ) ;
141- eventHub . on ( PanelEvent . CLOSED , this . handleClosed ) ;
142- eventHub . on ( PanelEvent . CLOSE , this . handleControlClose ) ;
143143 // PanelEvent.OPEN should be listened to by plugins to open a panel
144144 }
145145
@@ -149,6 +149,10 @@ class PanelManager {
149149 eventHub . off ( PanelEvent . MOUNT , this . handleMount ) ;
150150 eventHub . off ( PanelEvent . UNMOUNT , this . handleUnmount ) ;
151151 eventHub . off ( PanelEvent . REOPEN , this . handleReopen ) ;
152+ eventHub . off ( PanelEvent . REOPEN_LAST , this . handleReopenLast ) ;
153+ eventHub . off ( PanelEvent . DELETE , this . handleDeleted ) ;
154+ eventHub . off ( PanelEvent . CLOSED , this . handleClosed ) ;
155+ eventHub . off ( PanelEvent . CLOSE , this . handleControlClose ) ;
152156 eventHub . off (
153157 NavigationEvent . CYCLE_TO_NEXT_STACK ,
154158 this . handleCycleToNextStack
@@ -162,10 +166,6 @@ class PanelManager {
162166 NavigationEvent . CYCLE_TO_PREVIOUS_TAB ,
163167 this . handleCycleToPreviousTab
164168 ) ;
165- eventHub . off ( PanelEvent . REOPEN_LAST , this . handleReopenLast ) ;
166- eventHub . off ( PanelEvent . DELETE , this . handleDeleted ) ;
167- eventHub . off ( PanelEvent . CLOSED , this . handleClosed ) ;
168- eventHub . off ( PanelEvent . CLOSE , this . handleControlClose ) ;
169169 }
170170
171171 getClosedPanelConfigsOfType ( typeString : string ) : ClosedPanels {
0 commit comments