mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Update ScrollToFixed definitions
This commit is contained in:
@@ -17,9 +17,6 @@ $(document).ready(function() {
|
||||
postFixed: function() { $(this).find('h1').css('color', ''); }
|
||||
});
|
||||
|
||||
// Order matters because our summary limit is based on the position
|
||||
// of the footer. On window refresh, the summary needs to recalculate
|
||||
// after the footer.
|
||||
$('#summary').scrollToFixed({
|
||||
marginTop: $('.header').outerHeight() + 10,
|
||||
limit: function() {
|
||||
@@ -32,4 +29,6 @@ $(document).ready(function() {
|
||||
postFixed: function() { $(this).find('.title').css('color', ''); },
|
||||
postAbsolute: function() { $(this).find('.title').css('color', ''); }
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
var b = $.isScrollToFixed('.header');
|
||||
Vendored
+8
-4
@@ -31,15 +31,19 @@ declare module ScrollToFixed {
|
||||
}
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
interface JQuery {
|
||||
scrollToFixed : (options? : ScrollToFixed.ScrollToFixedOptions) => JQuery[];
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
isScrollToFixed(el: Element) : JQuery;
|
||||
isScrollToFixed(el: Element[]) : JQuery;
|
||||
isScrollToFixed(el: {}) : JQuery;
|
||||
isScrollToFixed(el: JQuery) : JQuery;
|
||||
|
||||
ScrollToFixed(el: Element, options: ScrollToFixed.ScrollToFixedOptions): void;
|
||||
ScrollToFixed(el : Element, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
|
||||
ScrollToFixed(el: Element[], options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
|
||||
ScrollToFixed(el: {}, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
|
||||
ScrollToFixed(el: JQuery, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
|
||||
|
||||
scrollToFixed : (options? : ScrollToFixed.ScrollToFixedOptions) => JQuery[];
|
||||
ScrollToFixed(el: JQuery, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
|
||||
}
|
||||
Reference in New Issue
Block a user