mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
fix(toast): remove unneeded code
This commit is contained in:
@ -136,19 +136,6 @@ export class Toast {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected click(button: HTMLElement) {
|
|
||||||
console.log(button)
|
|
||||||
// let shouldDismiss = true;
|
|
||||||
// if (button.handler) {
|
|
||||||
// if (button.handler() === false) {
|
|
||||||
// shouldDismiss = false;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// if (shouldDismiss) {
|
|
||||||
// this.dismiss();
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
let userCssClass = 'toast-content';
|
let userCssClass = 'toast-content';
|
||||||
if (this.cssClass) {
|
if (this.cssClass) {
|
||||||
@ -171,7 +158,6 @@ export class Toast {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wrapperClass(): CssClassMap {
|
wrapperClass(): CssClassMap {
|
||||||
let wrapperClass: string[] = !this.position
|
let wrapperClass: string[] = !this.position
|
||||||
? ['toast-wrapper','toast-bottom']
|
? ['toast-wrapper','toast-bottom']
|
||||||
@ -181,6 +167,7 @@ export class Toast {
|
|||||||
return prevValue;
|
return prevValue;
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ToastOptions {
|
export interface ToastOptions {
|
||||||
|
Reference in New Issue
Block a user