refactor(slides): warn about the deprecated slide events always

References #5508
This commit is contained in:
Brandy Carney
2016-04-20 10:56:19 -04:00
parent a54361cf2e
commit 4a8975cb8b

View File

@ -371,17 +371,9 @@ export class Slides extends Ion {
console.warn('The "zoom" attribute has been deprecated. Please pass it in options.'); console.warn('The "zoom" attribute has been deprecated. Please pass it in options.');
} }
if (isPresent(this.change)) { // Deprecated 04-18 beta.5
// beta.5 2016-04-18 deprecated warning console.warn('The "slideChangeStart" event has been deprecated. Please use "willChange" instead. Ignore this if you aren\'t using it.');
// change has been renamed to didChange console.warn('The "change" event has been deprecated. Please use "didChange" instead. Ignore this if you aren\'t using it.');
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.');
}
if (isPresent(this.options.pager)) { if (isPresent(this.options.pager)) {
this.showPager = isTrueProperty(this.options.pager); this.showPager = isTrueProperty(this.options.pager);