Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef167ff

Browse files
mayunhaiPanJiaChen
authored andcommitted
perf[clipboard.js]: remove redundant code (PanJiaChen#2307)
1 parent 35adfce commit ef167ff

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/utils/clipboard.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ export default function handleClipboard(text, event) {
2222
})
2323
clipboard.on('success', () => {
2424
clipboardSuccess()
25-
clipboard.off('error')
26-
clipboard.off('success')
2725
clipboard.destroy()
2826
})
2927
clipboard.on('error', () => {
3028
clipboardError()
31-
clipboard.off('error')
32-
clipboard.off('success')
3329
clipboard.destroy()
3430
})
3531
clipboard.onClick(event)

0 commit comments

Comments
 (0)