Skip to content

Commit 42199c5

Browse files
mayunhaiTrong. Pham Van - CMC Global DU1.19
authored andcommitted
perf[clipboard.js]: remove redundant code (PanJiaChen#2307)
1 parent 8e5c2af commit 42199c5

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)