From 7cf7f9c5e0328e59ec76f6e3e7f599a5f753942b Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 26 Dec 2021 21:48:39 -0500 Subject: [PATCH] [-] Remove unnecessary isActive function --- src/components/BlogPost.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/BlogPost.vue b/src/components/BlogPost.vue index 5eaa112..fcdceaf 100644 --- a/src/components/BlogPost.vue +++ b/src/components/BlogPost.vue @@ -66,7 +66,7 @@ export default class BlogPostPreview extends Vue this.isActiveChangeDueToClickTitle = true // Change url - if (!this.isActive()) this.$router.push(`/blog?post=${this.meta.url_name}`) + if (!this.active) this.$router.push(`/blog?post=${this.meta.url_name}`) else this.$router.push('/blog') } @@ -106,11 +106,6 @@ export default class BlogPostPreview extends Vue if (this.active) document.title = `Blog: ${this.meta.title}` } - isActive(): boolean - { - return $(`.${this.uid} > .ui-state-active`).length != 0 - } - /** * Element classes */