perf[clipboard.js]: remove redundant code (#2307)
This commit is contained in:
parent
35adfcef3f
commit
ef167ff064
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue