fix(slides): change event emitter from next to emit

Next is apparently deprecated.
This commit is contained in:
Brandy Carney
2015-12-16 15:43:59 -05:00
parent 0f57b1f64f
commit 1961b0d211

View File

@ -91,7 +91,7 @@ import {Scroll} from '../scroll/scroll';
directives: [NgClass] directives: [NgClass]
}) })
export class Slides extends Ion { export class Slides extends Ion {
@Output() change:EventEmitter = new EventEmitter(); @Output() change: EventEmitter<any> = new EventEmitter();
/** /**
* @private * @private
@ -150,7 +150,7 @@ export class Slides extends Ion {
return this.options.onSlideChangeStart && this.options.onSlideChangeStart(swiper); return this.options.onSlideChangeStart && this.options.onSlideChangeStart(swiper);
}; };
options.onSlideChangeEnd = (swiper) => { options.onSlideChangeEnd = (swiper) => {
this.change.next(swiper); this.change.emit(swiper);
return this.options.onSlideChangeEnd && this.options.onSlideChangeEnd(swiper); return this.options.onSlideChangeEnd && this.options.onSlideChangeEnd(swiper);
}; };
options.onLazyImageLoad = (swiper, slide, img) => { options.onLazyImageLoad = (swiper, slide, img) => {