Fails silently in favor of speed

This commit is contained in:
Zeno Rocha
2015-09-28 21:59:18 -07:00
parent 775e4b898d
commit 1f61e16eb5
2 changed files with 0 additions and 26 deletions

View File

@@ -18,10 +18,6 @@ class Clipboard extends Emitter {
constructor(selector, options) {
super();
if (!document.querySelectorAll(selector).length) {
throw new Error('No matches were found for the provided selector');
}
this.resolveOptions(options);
Delegate.bind(document.body, selector, 'click', (e) => this.initialize(e));