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/HeroTalentTable.vue | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'src/HeroTalentTable.vue')

diff --git a/src/HeroTalentTable.vue b/src/HeroTalentTable.vue
index 77d868c..b335421 100644
--- a/src/HeroTalentTable.vue
+++ b/src/HeroTalentTable.vue
@@ -53,7 +53,7 @@ import * as maps from './maps/maps';
 
 export default Vue.component('hero-talent-table', {
   mixins: [ RouterParamMixin ],
-  data: function() {
+  data() {
     return {
       getTalentName: maps.getTalentName,
       getLevelBuckets: ReportService.getLevelBuckets,
@@ -61,25 +61,25 @@ export default Vue.component('hero-talent-table', {
     };
   },
   computed: {
-    hasTalents: function() {
+    hasTalents() {
       return maps.hasTalents(this.selectedMode);
     },
-    totalPicks: function() {
+    totalPicks() {
       return ReportService.getTotalPicks(this.selectedMode);
     },
-    heroReport: function() {
+    heroReport() {
       return ReportService.getReport(this.selectedMode)
           .filter((entry) => entry.Actor == this.selectedActor)
           .sort((entry1, entry2) => maps.getTalentRarityIndex(entry1.Talent) - maps.getTalentRarityIndex(entry2.Talent));
     },
-    totalHeroReport: function() {
+    totalHeroReport() {
       return this.heroReport
         .map((entry) => ({ 'TotalWinner': entry.TotalPicks * entry.TotalWinner, 'TotalPicks': entry.TotalPicks }))
         .reduce((agg, cur) =>
           ({ 'TotalWinner': agg.TotalWinner + cur.TotalWinner, 'TotalPicks': agg.TotalPicks + cur.TotalPicks }),
           { 'TotalWinner': 0, 'TotalPicks': 0 });
     },
-    playersPerMatch: function() {
+    playersPerMatch() {
       return maps.playersPerMatch(this.selectedMode);
     },
   },
-- 
cgit v1.3.1

