Skip to content

Commit 96ef75a

Browse files
committed
style(toast): fix tslint errors
1 parent e07f0ae commit 96ef75a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ionic/components/toast/toast.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ class ToastCmp {
158158
}
159159

160160
// if there's a `duration` set, automatically dismiss.
161-
this.dismissTimeout = setTimeout(() => this.dismiss('backdrop'), this.d.duration ? this.d.duration : 3000)
161+
this.dismissTimeout = setTimeout(() =>
162+
this.dismiss('backdrop'),
163+
this.d.duration ? this.d.duration : 3000);
162164
}
163165

164166
click(button, dismissDelay?) {
@@ -197,7 +199,7 @@ export interface ToastOptions {
197199
title?: string;
198200
cssClass?: string;
199201
buttons?: Array<any>;
200-
duration?: number,
202+
duration?: number;
201203
showCloseButton?: boolean;
202204
closeButtonText?: string;
203205
enableBackdropDismiss?: boolean;
@@ -237,7 +239,7 @@ class ToastMdSlideIn extends Transition {
237239

238240
backdrop.fromTo('opacity', 0, 0);
239241
wrapper.fromTo('translateY', '100%', '0%');
240-
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper)
242+
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
241243
}
242244
}
243245

0 commit comments

Comments
 (0)