mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Moves from Node's require to ES6's import syntax
This commit is contained in:
parent
1acd23049e
commit
467684333f
2
dist/clipboard.min.js
vendored
2
dist/clipboard.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
const ClipboardAction = require('./clipboard-action');
|
||||
const delegate = require('delegate-events');
|
||||
const Emitter = require('tiny-emitter');
|
||||
import ClipboardAction from './clipboard-action';
|
||||
import Delegate from 'delegate-events';
|
||||
import Emitter from 'tiny-emitter';
|
||||
|
||||
/**
|
||||
* Base class which takes a selector, delegates a click event to it,
|
||||
@ -18,7 +18,7 @@ class Clipboard extends Emitter {
|
||||
throw new Error('No matches were found for the provided selector');
|
||||
}
|
||||
|
||||
delegate.bind(document.body, selector, 'click', (e) => this.initialize(e));
|
||||
Delegate.bind(document.body, selector, 'click', (e) => this.initialize(e));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user