File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ $(document).ready(function() {
17
17
postFixed : function ( ) { $ ( this ) . find ( 'h1' ) . css ( 'color' , '' ) ; }
18
18
} ) ;
19
19
20
- // Order matters because our summary limit is based on the position
21
- // of the footer. On window refresh, the summary needs to recalculate
22
- // after the footer.
23
20
$ ( '#summary' ) . scrollToFixed ( {
24
21
marginTop : $ ( '.header' ) . outerHeight ( ) + 10 ,
25
22
limit : function ( ) {
@@ -32,4 +29,6 @@ $(document).ready(function() {
32
29
postFixed : function ( ) { $ ( this ) . find ( '.title' ) . css ( 'color' , '' ) ; } ,
33
30
postAbsolute : function ( ) { $ ( this ) . find ( '.title' ) . css ( 'color' , '' ) ; }
34
31
} ) ;
35
- } ) ;
32
+ } ) ;
33
+
34
+ var b = $ . isScrollToFixed ( '.header' ) ;
Original file line number Diff line number Diff line change @@ -31,15 +31,19 @@ declare module ScrollToFixed {
31
31
}
32
32
}
33
33
34
- interface JQuery {
34
+ interface JQuery {
35
+ scrollToFixed : ( options ? : ScrollToFixed . ScrollToFixedOptions ) => JQuery [ ] ;
36
+ }
37
+
38
+ interface JQueryStatic {
35
39
isScrollToFixed ( el : Element ) : JQuery ;
36
40
isScrollToFixed ( el : Element [ ] ) : JQuery ;
37
41
isScrollToFixed ( el : { } ) : JQuery ;
38
42
isScrollToFixed ( el : JQuery ) : JQuery ;
43
+
44
+ ScrollToFixed ( el : Element , options : ScrollToFixed . ScrollToFixedOptions ) : void ;
39
45
ScrollToFixed ( el : Element , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
40
46
ScrollToFixed ( el : Element [ ] , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
41
47
ScrollToFixed ( el : { } , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
42
- ScrollToFixed ( el : JQuery , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
43
-
44
- scrollToFixed : ( options ? : ScrollToFixed . ScrollToFixedOptions ) => JQuery [ ] ;
48
+ ScrollToFixed ( el : JQuery , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
45
49
}
You can’t perform that action at this time.
0 commit comments