Merge pull request #5087 from 3dd13/add-timeout-before-init-swiper

fix(slides): wrap swiper init code in set timeout
This commit is contained in:
Adam Bradley
2016-01-19 08:57:10 -06:00

View File

@ -186,9 +186,10 @@ export class Slides extends Ion {
return this.options.onLazyImageReady && this.options.onLazyImageReady(swiper, slide, img); return this.options.onLazyImageReady && this.options.onLazyImageReady(swiper, slide, img);
}; };
var swiper = new Swiper(this.getNativeElement().children[0], options); setTimeout(() => {
var swiper = new Swiper(this.getNativeElement().children[0], options);
this.slider = swiper; this.slider = swiper;
});
/* /*
* TODO: Finish this * TODO: Finish this