From 1961b0d2115a275d86a1e70b79c470120c556ef9 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 16 Dec 2015 15:43:59 -0500 Subject: [PATCH] fix(slides): change event emitter from next to emit Next is apparently deprecated. --- ionic/components/slides/slides.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ionic/components/slides/slides.ts b/ionic/components/slides/slides.ts index 87a59bc6d5..4260ee1171 100644 --- a/ionic/components/slides/slides.ts +++ b/ionic/components/slides/slides.ts @@ -91,7 +91,7 @@ import {Scroll} from '../scroll/scroll'; directives: [NgClass] }) export class Slides extends Ion { - @Output() change:EventEmitter = new EventEmitter(); + @Output() change: EventEmitter = new EventEmitter(); /** * @private @@ -150,7 +150,7 @@ export class Slides extends Ion { return this.options.onSlideChangeStart && this.options.onSlideChangeStart(swiper); }; options.onSlideChangeEnd = (swiper) => { - this.change.next(swiper); + this.change.emit(swiper); return this.options.onSlideChangeEnd && this.options.onSlideChangeEnd(swiper); }; options.onLazyImageLoad = (swiper, slide, img) => {