mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
refactor(slides): warn about the deprecated slide events always
References #5508
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user