File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export interface MenuItem {
35
35
active ?: boolean ;
36
36
ready ?: boolean ;
37
37
38
- depth ?: number ;
38
+ depth ?: string | number ;
39
39
flatIdx ?: number ;
40
40
41
41
metadata ?: any ;
@@ -72,7 +72,11 @@ export class MenuService {
72
72
this . buildMenu ( ) ;
73
73
} ) ;
74
74
75
- this . _scrollSubscription = scrollService . scroll . subscribe ( ( evt ) => {
75
+ this . subscribe ( ) ;
76
+ }
77
+
78
+ subscribe ( ) {
79
+ this . _scrollSubscription = this . scrollService . scroll . subscribe ( ( evt ) => {
76
80
this . onScroll ( evt . isScrolledDown ) ;
77
81
} ) ;
78
82
@@ -478,5 +482,6 @@ export class MenuService {
478
482
destroy ( ) {
479
483
this . _hashSubscription . unsubscribe ( ) ;
480
484
this . _scrollSubscription . unsubscribe ( ) ;
485
+ this . _progressSubscription . unsubscribe ( ) ;
481
486
}
482
487
}
You can’t perform that action at this time.
0 commit comments