fix(infinite-scroll): remove unused method

This commit is contained in:
Manu Mtz.-Almeida
2018-08-24 21:16:12 +02:00
parent ac96705401
commit 926758e585
2 changed files with 0 additions and 14 deletions

View File

@ -1646,10 +1646,6 @@ export namespace Components {
* The threshold distance from the bottom of the content to call the `infinite` output event when scrolled. The threshold value can be either a percent, or in pixels. For example, use the value of `10%` for the `infinite` output event to get called when the user has scrolled 10% from the bottom of the page. Use the value `100px` when the scroll is within 100 pixels from the bottom of the page. Defaults to `15%`. * The threshold distance from the bottom of the content to call the `infinite` output event when scrolled. The threshold value can be either a percent, or in pixels. For example, use the value of `10%` for the `infinite` output event to get called when the user has scrolled 10% from the bottom of the page. Use the value `100px` when the scroll is within 100 pixels from the bottom of the page. Defaults to `15%`.
*/ */
'threshold': string; 'threshold': string;
/**
* Pass a promise inside `waitFor()` within the `infinite` output event handler in order to change state of infiniteScroll to "complete"
*/
'waitFor': (action: Promise<any>) => void;
} }
interface IonInfiniteScrollAttributes extends StencilHTMLAttributes { interface IonInfiniteScrollAttributes extends StencilHTMLAttributes {
/** /**

View File

@ -188,16 +188,6 @@ export class InfiniteScroll {
// } // }
} }
/**
* Pass a promise inside `waitFor()` within the `infinite` output event handler in order to
* change state of infiniteScroll to "complete"
*/
@Method()
waitFor(action: Promise<any>) {
const enable = this.complete.bind(this);
action.then(enable, enable);
}
private canStart(): boolean { private canStart(): boolean {
return ( return (
!this.disabled && !this.disabled &&