@@ -24,7 +24,6 @@ var electron = require('electron');
24
24
var APP_VERSION = electron . remote . app . getVersion ( ) ;
25
25
26
26
var _ = require ( 'lodash' ) ;
27
- var ViewSwitcher = require ( 'ampersand-view-switcher' ) ;
28
27
var View = require ( 'ampersand-view' ) ;
29
28
var async = require ( 'async' ) ;
30
29
var ipc = require ( 'hadron-ipc' ) ;
@@ -117,8 +116,6 @@ var Application = View.extend({
117
116
return debug ( 'router already started!' ) ;
118
117
}
119
118
this . router = new Router ( ) ;
120
- debug ( 'Listening for page changes from the router...' ) ;
121
- this . listenTo ( this . router , 'page' , this . onPageChange ) ;
122
119
123
120
debug ( 'Starting router...' ) ;
124
121
this . router . history . start ( {
@@ -180,11 +177,6 @@ var Application = View.extend({
180
177
181
178
this . el = document . querySelector ( '#application' ) ;
182
179
this . renderWithTemplate ( this ) ;
183
- this . pageSwitcher = new ViewSwitcher ( this . queryByHook ( 'layout-container' ) , {
184
- show : function ( ) {
185
- document . scrollTop = 0 ;
186
- }
187
- } ) ;
188
180
debug ( 'rendering statusbar...' ) ;
189
181
this . statusComponent = app . appRegistry . getRole ( 'Application.Status' ) [ 0 ] . component ;
190
182
ReactDOM . render ( React . createElement ( this . statusComponent ) , this . queryByHook ( 'statusbar' ) ) ;
@@ -258,12 +250,6 @@ var Application = View.extend({
258
250
this . showOptIn ( ) ;
259
251
}
260
252
} ,
261
- onPageChange : function ( view ) {
262
- // connect dialog
263
- if ( view . screenName ) {
264
- this . pageSwitcher . set ( view ) ;
265
- }
266
- } ,
267
253
onLinkClick : function ( event ) {
268
254
const localLinks = require ( 'local-links' ) ;
269
255
const pathname = localLinks . getLocalPathname ( event ) ;
0 commit comments