This commit is contained in:
Zeno Rocha 2015-11-19 07:22:37 -08:00
parent 15d4807166
commit d06551505b

View File

@ -173,7 +173,7 @@ clipboard.on('error', function(e) {
}
});</code></pre>
<p>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.</p>
<p>Also, 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.</p>
<pre class="snippet"><code class="js">var clipboard = new Clipboard('.btn');
clipboard.destroy();</code></pre>