mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Fixes type of return on querySelectorAll method
This commit is contained in:
parent
bfef47473e
commit
7df9e6d8f9
@ -132,7 +132,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
<pre><code class="js">var clipboard = new Clipboard('.btn');
|
||||
var btns = clipboard.triggers;</code></pre>
|
||||
|
||||
<p>Internally, this property is just an array resulted from a <code>querySelectorAll</code> operation. So all you have to do now is loop through that array and attach listeners.</p>
|
||||
<p>Internally, this property is just a collections of nodes resulted from a <code>querySelectorAll</code> operation. So all you have to do now is loop through that collection and attach listeners.</p>
|
||||
|
||||
<pre><code class="js">for (var i = 0; i < btns.length; i++) {
|
||||
btns[i].addEventListener('copy', function(e) {
|
||||
|
Loading…
Reference in New Issue
Block a user