0

I wanted to remove click event on Element in Clipboard.js.
Is there any way to remove click event on button copy icon?

Dovydas Šopa
  • 2,282
  • 8
  • 26
  • 34
Kamal Kumar
  • 346
  • 2
  • 10
  • Could you please post code relevant to your problem? What have you tried to do so far? Are there any console errors? – wahwahwah May 04 '17 at 22:27

1 Answers1

2

Yes, there is. If you are working with single page apps, you may want to manage the lifecycle of the DOM more precisely. Here's how you clean up the events and objects that we create.

var clipboard = new Clipboard('.btn');

clipboard.destroy();
Zeno Rocha
  • 3,226
  • 1
  • 23
  • 27