Document the browser restriction for a valid element

This commit is contained in:
Fagner Brack 2015-11-12 22:22:24 -02:00
parent 72926580c3
commit 033aceb114

View File

@ -141,6 +141,8 @@ new Clipboard('.btn', {
});
```
*Note: Due to [browser restrictions](https://github.com/zenorocha/clipboard.js/issues/127#issuecomment-156219577), it is required that the first argument refer to a valid element in the page.*
If you want to dynamically set a `text`, you'll return a String.
```js