From c7d12a8aaaad45b6d131fedd8a2169348c0ef3f5 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Mon, 25 Mar 2019 19:12:32 +0100
Subject: Use es6 method syntax

---
 src/Summaries.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/Summaries.vue')

diff --git a/src/Summaries.vue b/src/Summaries.vue
index 009a36b..d28bf32 100644
--- a/src/Summaries.vue
+++ b/src/Summaries.vue
@@ -88,7 +88,7 @@ import * as maps from './maps/maps';
 
 export default Vue.component('summaries', {
   mixins: [ RouterParamMixin ],
-  data: function() {
+  data() {
     return {
       talentsVisible: false,
       winrateVisible: true,
@@ -98,14 +98,14 @@ export default Vue.component('summaries', {
     };
   },
   computed: {
-    summaries: function() {
+    summaries() {
       return ReportService.getSummaries(this.selectedMode)
         .filter((summary) => this.hasTalents? true : summary.key != 'Rarity');
     },
-    summary: function() {
+    summary() {
       return this.summaries.find((summary) => summary.key == [this.selectedTrait]);
     },
-    totalPicks: function() {
+    totalPicks() {
       return this.summary.data.map((entry) => entry.TotalPicks).reduce((agg, cur) => agg + cur, 0);
     },
   },
-- 
cgit v1.3.1

