diff --git a/src/component/compare/compare.js b/src/component/compare/compare.js index 38b46fe..dda0e8a 100644 --- a/src/component/compare/compare.js +++ b/src/component/compare/compare.js @@ -96,7 +96,7 @@ class Compare extends Nerv.Component { componentDidMount () {} - setCurrentIdx = idx => { + setCurrentIdx (idx, event) { const tg = event.target const siblings = tg.parentNode.parentNode.children for (let i in siblings) { @@ -119,33 +119,25 @@ class Compare extends Nerv.Component {