99 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
1010 */
1111app . views . Content = class Content extends app . View {
12- constructor ( ...args ) {
13- super ( ...args ) ;
14- this . scrollToTop = this . scrollToTop . bind ( this ) ;
15- this . scrollToBottom = this . scrollToBottom . bind ( this ) ;
16- this . scrollStepUp = this . scrollStepUp . bind ( this ) ;
17- this . scrollStepDown = this . scrollStepDown . bind ( this ) ;
18- this . scrollPageUp = this . scrollPageUp . bind ( this ) ;
19- this . scrollPageDown = this . scrollPageDown . bind ( this ) ;
20- this . onReady = this . onReady . bind ( this ) ;
21- this . onBootError = this . onBootError . bind ( this ) ;
22- this . onEntryLoading = this . onEntryLoading . bind ( this ) ;
23- this . onEntryLoaded = this . onEntryLoaded . bind ( this ) ;
24- this . beforeRoute = this . beforeRoute . bind ( this ) ;
25- this . afterRoute = this . afterRoute . bind ( this ) ;
26- this . onClick = this . onClick . bind ( this ) ;
27- this . onAltF = this . onAltF . bind ( this ) ;
12+ constructor ( ) {
13+ super ( ) ;
2814 }
2915
3016 static initClass ( ) {
@@ -50,6 +36,21 @@ app.views.Content = class Content extends app.View {
5036 }
5137
5238 init ( ) {
39+ this . scrollToTop = this . scrollToTop . bind ( this ) ;
40+ this . scrollToBottom = this . scrollToBottom . bind ( this ) ;
41+ this . scrollStepUp = this . scrollStepUp . bind ( this ) ;
42+ this . scrollStepDown = this . scrollStepDown . bind ( this ) ;
43+ this . scrollPageUp = this . scrollPageUp . bind ( this ) ;
44+ this . scrollPageDown = this . scrollPageDown . bind ( this ) ;
45+ this . onReady = this . onReady . bind ( this ) ;
46+ this . onBootError = this . onBootError . bind ( this ) ;
47+ this . onEntryLoading = this . onEntryLoading . bind ( this ) ;
48+ this . onEntryLoaded = this . onEntryLoaded . bind ( this ) ;
49+ this . beforeRoute = this . beforeRoute . bind ( this ) ;
50+ this . afterRoute = this . afterRoute . bind ( this ) ;
51+ this . onClick = this . onClick . bind ( this ) ;
52+ this . onAltF = this . onAltF . bind ( this ) ;
53+
5354 this . scrollEl = app . isMobile ( )
5455 ? document . scrollingElement || document . body
5556 : this . el ;
0 commit comments