Big replacement: bool with boolean

This commit is contained in:
Boris Yankov
2013-08-07 16:59:39 +03:00
parent bded8a8af5
commit dd35f69637
128 changed files with 4254 additions and 4240 deletions
+27 -27
View File
@@ -10,30 +10,30 @@ interface JScrollPaneSettings {
* Whether arrows should be shown on the generated scroll pane. When set to false only the scrollbar
* track and drag will be shown, if set to true then arrows buttons will also be shown.
*/
showArrows?: bool;
showArrows?: boolean;
/**
* Whether the scrollpane should attempt to maintain it's position whenever it is reinitialised.
* If true then the viewport of the scrollpane will remain the same when it is reinitialised, if false
then the viewport will jump back up to the top when the scrollpane is reinitialised. See also stickToBottom and stickToRight.
*/
maintainPosition?: bool;
maintainPosition?: boolean;
/**
* If maintainPosition is true and the scrollpane is scrolled to the bottom then the scrollpane then the scrollpane will
* remain scrolled to the bottom even if new content is added to the pane which makes it taller.
*/
stickToBottom?: bool;
stickToBottom?: boolean;
/**
* If maintainPosition is true and the scrollpane is scrolled to its right edge then the scrollpane then the scrollpane
* will remain scrolled to the right edge even if new content is added to the pane which makes it wider.
*/
stickToRight?: bool;
stickToRight?: boolean;
/**
* Whether jScrollPane should automatically reinitialise itself periodically after you have initially initialised it.
* This can help with instances when the size of the content of the scrollpane (or the surrounding element) changes.
* However, it does involve an overhead of running a javascript function on a timer so it is recommended only to activate
* where necessary.
*/
autoReinitialise?: bool;
autoReinitialise?: boolean;
/**
* The number of milliseconds between each reinitialisation (if autoReinitialise is true).
*/
@@ -69,7 +69,7 @@ interface JScrollPaneSettings {
* the animateDuration and animateEase settings or if you want to exercise more complete control then you can override
* the animate API method. Demo.
*/
animateScroll?: bool;
animateScroll?: boolean;
/**
* The number of milliseconds taken to animate to a new position
*/
@@ -82,7 +82,7 @@ interface JScrollPaneSettings {
* Whether internal links on the page should be hijacked so that if they point so content within a jScrollPane then
* they automatically scroll the jScrollPane to the correct place.
*/
hijackInternalLinks?: bool;
hijackInternalLinks?: boolean;
/**
* The amount of space between the side of the content and the vertical scrollbar.
*/
@@ -106,7 +106,7 @@ interface JScrollPaneSettings {
/**
* Whether the arrow buttons should cause the jScrollPane to scroll while you are hovering over them.
*/
arrowScrollOnHover?: bool;
arrowScrollOnHover?: boolean;
/**
* Where the vertical arrows should appear relative to the vertical track.
*/
@@ -119,17 +119,17 @@ interface JScrollPaneSettings {
* Whether keyboard navigation should be enabled (e.g. whether the user can focus the scrollpane and then use
* the arrow (and other) keys to navigate around.
*/
enableKeyboardNavigation?: bool;
enableKeyboardNavigation?: boolean;
/**
* Whether the focus outline should be hidden in all browsers. For best accessibility you should not change
* this option. You can style the outline with the CSS property outline and outline-offset.
*/
hideFocus?: bool;
hideFocus?: boolean;
/**
* Whether clicking on the track (e.g. the area behind the drag) should scroll towards the point clicked on.
* Defaults to true as this is the native behaviour in these situations.
*/
clickOnTrack?: bool;
clickOnTrack?: boolean;
/**
* A multiplier which is used to control the amount that the scrollpane scrolls each trackClickRepeatFreq
* while the mouse button is held down over the track.
@@ -156,7 +156,7 @@ interface JScrollPaneApi {
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToElement(ele: JQuery, stickToTop?: bool, animate?: bool): void;
scrollToElement(ele: JQuery, stickToTop?: bool, animate?: boolean): void;
/**
* Scrolls the specified element (a jQuery selector string) into view so that it can be seen within the viewport.
* @param ele A jQuery selector of the object to scroll to
@@ -165,7 +165,7 @@ interface JScrollPaneApi {
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToElement(ele: string, stickToTop?: bool, animate?: bool): void;
scrollToElement(ele: string, stickToTop?: bool, animate?: boolean): void;
/**
* Scrolls the specified element (a DOM node) into view so that it can be seen within the viewport.
* @param ele A DOM node to scroll to
@@ -174,7 +174,7 @@ interface JScrollPaneApi {
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToElement(ele: HTMLElement, stickToTop?: bool, animate?: bool): void;
scrollToElement(ele: HTMLElement, stickToTop?: bool, animate?: boolean): void;
/**
* Scrolls the pane so that the specified co-ordinates within the content are at the top left of the viewport.
* @param destX Left position of the viewport to scroll to
@@ -182,35 +182,35 @@ interface JScrollPaneApi {
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollTo(destX: number, destY: number, animate?: bool): void;
scrollTo(destX: number, destY: number, animate?: boolean): void;
/**
* Scrolls the pane so that the specified co-ordinate within the content is at the left of the viewport.
* @param destX Left position of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToX(destX: number, animate?: bool): void;
scrollToX(destX: number, animate?: boolean): void;
/**
* Scrolls the pane so that the specified co-ordinate within the content is at the top of the viewport.
* @param destY Top position of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToY(destY: number, animate?: bool): void;
scrollToY(destY: number, animate?: boolean): void;
/**
* Scrolls the pane to the specified percentage of its maximum horizontal scroll position.
* @param destPercentX Percentage from left of the full width of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToPercentX(destPercentX: number, animate?: bool): void;
scrollToPercentX(destPercentX: number, animate?: boolean): void;
/**
* Scrolls the pane to the specified percentage of its maximum vertical scroll position.
* @param destPercentY Percentage from top of the full width of the viewport to scroll to
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToPercentY(destPercentY: number, animate?: bool): void;
scrollToPercentY(destPercentY: number, animate?: boolean): void;
/**
* Scrolls the pane by the specified amount of pixels.
* @param deltaX Number of pixels to scroll horizontally
@@ -218,35 +218,35 @@ interface JScrollPaneApi {
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollBy(deltaX: number, deltaY: number, animate?: bool): void;
scrollBy(deltaX: number, deltaY: number, animate?: boolean): void;
/**
* Scrolls the pane by the specified amount of pixels.
* @param deltaX Number of pixels to scroll horizontally
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollByX(deltaX: number, animate?: bool): void;
scrollByX(deltaX: number, animate?: boolean): void;
/**
* Scrolls the pane by the specified amount of pixels
* @param deltaY Number of pixels to scroll vertically
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollByY(deltaY: number, animate?: bool): void;
scrollByY(deltaY: number, animate?: boolean): void;
/**
* Positions the horizontal drag at the specified x position (and updates the viewport to reflect this)
* @param x New position of the horizontal drag
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
positionDragX(x: number, animate?: bool): void;
positionDragX(x: number, animate?: boolean): void;
/**
* Positions the vertical drag at the specified y position (and updates the viewport to reflect this)
* @param x New position of the vertical drag
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
positionDragY(y: number, animate?: bool): void;
positionDragY(y: number, animate?: boolean): void;
/**
* This method is called when jScrollPane is trying to animate to a new position. You can override it if you want
* to provide advanced animation functionality.
@@ -271,7 +271,7 @@ interface JScrollPaneApi {
/**
* Returns whether or not this scrollpane has a horizontal scrollbar.
*/
getIsScrollableH(): bool;
getIsScrollableH(): boolean;
/**
* Returns the horizontal position of the viewport within the pane content.
*/
@@ -283,7 +283,7 @@ interface JScrollPaneApi {
/**
* Returns whether or not this scrollpane has a vertical scrollbar.
*/
getIsScrollableV(): bool;
getIsScrollableV(): boolean;
/**
* Gets a reference to the content pane. It is important that you use this method if you want to edit the content
* of your jScrollPane as if you access the element directly then you may have some problems (as your original
@@ -295,7 +295,7 @@ interface JScrollPaneApi {
* @param animate Should an animation occur. If you don't provide this argument then the animateScroll
value from the settings object is used instead.
*/
scrollToBottom(animate?: bool);
scrollToBottom(animate?: boolean);
/**
* Hijacks the links on the page which link to content inside the scrollpane. If you have changed the content of
* your page (e.g. via AJAX) and want to make sure any new anchor links to the contents of your scroll pane will