From 4a8975cb8bf8de79989b67f4a58d7298246c6fb7 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 20 Apr 2016 10:56:19 -0400 Subject: [PATCH] refactor(slides): warn about the deprecated slide events always References #5508 --- ionic/components/slides/slides.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ionic/components/slides/slides.ts b/ionic/components/slides/slides.ts index 59e166d26cb..94ec7a67a44 100644 --- a/ionic/components/slides/slides.ts +++ b/ionic/components/slides/slides.ts @@ -371,17 +371,9 @@ export class Slides extends Ion { console.warn('The "zoom" attribute has been deprecated. Please pass it in options.'); } - if (isPresent(this.change)) { - // beta.5 2016-04-18 deprecated warning - // change has been renamed to didChange - console.warn('The "change" event has been deprecated. Please use "didChange" instead.'); - } - - if (isPresent(this.slideChangeStart)) { - // beta.5 2016-04-18 deprecated warning - // slideChangeStart has been renamed to willChange - console.warn('The "slideChangeStart" event has been deprecated. Please use "willChange" instead.'); - } + // Deprecated 04-18 beta.5 + console.warn('The "slideChangeStart" event has been deprecated. Please use "willChange" instead. Ignore this if you aren\'t using it.'); + console.warn('The "change" event has been deprecated. Please use "didChange" instead. Ignore this if you aren\'t using it.'); if (isPresent(this.options.pager)) { this.showPager = isTrueProperty(this.options.pager);