From 8d6750d9c2816e33a0444cd978f94009d8b85d47 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 5 Jul 2019 10:17:44 +0300 Subject: eslint --fix --ext .js,.vue src --- src/components/timeago/timeago.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/components/timeago/timeago.vue') diff --git a/src/components/timeago/timeago.vue b/src/components/timeago/timeago.vue index 3f185a2d..6df0524d 100644 --- a/src/components/timeago/timeago.vue +++ b/src/components/timeago/timeago.vue @@ -1,5 +1,8 @@ @@ -16,12 +19,6 @@ export default { interval: null } }, - created () { - this.refreshRelativeTimeObject() - }, - destroyed () { - clearTimeout(this.interval) - }, computed: { localeDateString () { return typeof this.time === 'string' @@ -29,6 +26,12 @@ export default { : this.time.toLocaleString() } }, + created () { + this.refreshRelativeTimeObject() + }, + destroyed () { + clearTimeout(this.interval) + }, methods: { refreshRelativeTimeObject () { const nowThreshold = typeof this.nowThreshold === 'number' ? this.nowThreshold : 1 @@ -45,4 +48,4 @@ export default { } } } - \ No newline at end of file + -- cgit v1.2.3-70-g09d2