From cd14566a34013e65b603a71208d058871e992956 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Fri, 9 Aug 2019 23:28:46 -0400
Subject: [PATCH] remove useless index param of onSwitch
---
src/components/interactions/interactions.js | 2 +-
src/components/search/search.js | 2 +-
src/components/tab_switcher/tab_switcher.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/components/interactions/interactions.js b/src/components/interactions/interactions.js
index d4e3cc17..90dbd76b 100644
--- a/src/components/interactions/interactions.js
+++ b/src/components/interactions/interactions.js
@@ -13,7 +13,7 @@ const Interactions = {
}
},
methods: {
- onModeSwitch (index, dataset) {
+ onModeSwitch (dataset) {
this.filterMode = tabModeDict[dataset.filter]
}
},
diff --git a/src/components/search/search.js b/src/components/search/search.js
index b434e127..37940f34 100644
--- a/src/components/search/search.js
+++ b/src/components/search/search.js
@@ -75,7 +75,7 @@ const Search = {
const length = this[tabName].length
return length === 0 ? '' : ` (${length})`
},
- onResultTabSwitch (_index, dataset) {
+ onResultTabSwitch (dataset) {
this.currenResultTab = dataset.filter
},
getActiveTab () {
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js
index a5fe019c..ff99e3e7 100644
--- a/src/components/tab_switcher/tab_switcher.js
+++ b/src/components/tab_switcher/tab_switcher.js
@@ -20,7 +20,7 @@ export default Vue.component('tab-switcher', {
activateTab (index, dataset) {
return () => {
if (typeof this.onSwitch === 'function') {
- this.onSwitch.call(null, index, this.$slots.default[index].elm.dataset)
+ this.onSwitch.call(null, this.$slots.default[index].elm.dataset)
}
this.active = index
}