diff --git a/index.html b/index.html index b7cac2a..9c989f5 100644 --- a/index.html +++ b/index.html @@ -154,6 +154,11 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30">< } }); +
Also, with 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();
+
There are cases where you'd like to show some user feedback or capture what has been selected after a copy/cut operation.