From f355087942a07a272bfe158cb61943ef53d5d63e Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 4 May 2016 17:12:38 -0600 Subject: [PATCH] fix(slides): make slide method parameters optional references #5508 --- ionic/components/slides/slides.ts | 6 +++--- ionic/components/slides/test/controller/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ionic/components/slides/slides.ts b/ionic/components/slides/slides.ts index aaa73e19eb4..3c9bd1a526d 100644 --- a/ionic/components/slides/slides.ts +++ b/ionic/components/slides/slides.ts @@ -787,7 +787,7 @@ export class Slides extends Ion { * @param {number} speed Transition duration (in ms). Optional. * @param {boolean} runCallbacks Whether or not to emit the `willChange`/`didChange` events. Optional. Default true. */ - slideTo(index: number, speed: number, runCallbacks: boolean) { + slideTo(index: number, speed?: number, runCallbacks?: boolean) { this.slider.slideTo(index, speed, runCallbacks); } @@ -797,7 +797,7 @@ export class Slides extends Ion { * @param {number} speed Transition duration (in ms). Optional. * @param {boolean} runCallbacks Whether or not to emit the `willChange`/`didChange` events. Optional. Default true. */ - slideNext(speed: number, runCallbacks: boolean) { + slideNext(speed?: number, runCallbacks?: boolean) { this.slider.slideNext(runCallbacks, speed); } @@ -807,7 +807,7 @@ export class Slides extends Ion { * @param {number} speed Transition duration (in ms). Optional. * @param {boolean} runCallbacks Whether or not to emit the `willChange`/`didChange` events. Optional. Default true. */ - slidePrev(speed: number, runCallbacks: boolean) { + slidePrev(speed?: number, runCallbacks?: boolean) { this.slider.slidePrev(runCallbacks, speed); } diff --git a/ionic/components/slides/test/controller/index.ts b/ionic/components/slides/test/controller/index.ts index 717ee431ca1..c99b1d61ebe 100644 --- a/ionic/components/slides/test/controller/index.ts +++ b/ionic/components/slides/test/controller/index.ts @@ -49,5 +49,5 @@ class MyPage { template: `` }) class E2EApp { - root: Page = MyPage; + root: any = MyPage; }