diff --git a/index.html b/index.html index 1c67f38..aa6e920 100644 --- a/index.html +++ b/index.html @@ -132,7 +132,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
var clipboard = new Clipboard('.btn');
 var btns = clipboard.triggers;
-

Internally, this property is just an array resulted from a querySelectorAll operation. So all you have to do now is loop through that array and attach listeners.

+

Internally, this property is just a collections of nodes resulted from a querySelectorAll operation. So all you have to do now is loop through that collection and attach listeners.

for (var i = 0; i < btns.length; i++) {
     btns[i].addEventListener('copy', function(e) {