perf[clipboard.js]: remove redundant code (#2307)
This commit is contained in:
parent
e216e11618
commit
acbbc5f52d
|
@ -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