style(toast): fix tslint errors

This commit is contained in:
Adam Bradley
2016-04-21 09:52:51 -05:00
parent e07f0ae693
commit 96ef75a10a

View File

@ -158,7 +158,9 @@ class ToastCmp {
} }
// if there's a `duration` set, automatically dismiss. // if there's a `duration` set, automatically dismiss.
this.dismissTimeout = setTimeout(() => this.dismiss('backdrop'), this.d.duration ? this.d.duration : 3000) this.dismissTimeout = setTimeout(() =>
this.dismiss('backdrop'),
this.d.duration ? this.d.duration : 3000);
} }
click(button, dismissDelay?) { click(button, dismissDelay?) {
@ -197,7 +199,7 @@ export interface ToastOptions {
title?: string; title?: string;
cssClass?: string; cssClass?: string;
buttons?: Array<any>; buttons?: Array<any>;
duration?: number, duration?: number;
showCloseButton?: boolean; showCloseButton?: boolean;
closeButtonText?: string; closeButtonText?: string;
enableBackdropDismiss?: boolean; enableBackdropDismiss?: boolean;
@ -237,7 +239,7 @@ class ToastMdSlideIn extends Transition {
backdrop.fromTo('opacity', 0, 0); backdrop.fromTo('opacity', 0, 0);
wrapper.fromTo('translateY', '100%', '0%'); wrapper.fromTo('translateY', '100%', '0%');
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper) this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
} }
} }