Skip to content

Commit

Permalink
perf[clipboard.js]: remove redundant code (#2307)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayunhai authored and PanJiaChen committed Jun 30, 2019
1 parent 35adfce commit ef167ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ export default function handleClipboard(text, event) {
})
clipboard.on('success', () => {
clipboardSuccess()
clipboard.off('error')
clipboard.off('success')
clipboard.destroy()
})
clipboard.on('error', () => {
clipboardError()
clipboard.off('error')
clipboard.off('success')
clipboard.destroy()
})
clipboard.onClick(event)
Expand Down

0 comments on commit ef167ff

Please sign in to comment.