Merge pull request #190 from heldr/master

update modules and fix #176
This commit is contained in:
Zeno Rocha
2016-02-25 12:19:22 -08:00
6 changed files with 371 additions and 378 deletions

View File

@@ -4,7 +4,7 @@ import select from 'select';
* Inner class which performs selection from either `text` or `target`
* properties and then executes copy or cut operations.
*/
export default class ClipboardAction {
class ClipboardAction {
/**
* @param {Object} options
*/
@@ -202,3 +202,5 @@ export default class ClipboardAction {
this.removeFake();
}
}
module.exports = ClipboardAction;

View File

@@ -6,7 +6,7 @@ import listen from 'good-listener';
* Base class which takes one or more elements, adds event listeners to them,
* and instantiates a new `ClipboardAction` on each click.
*/
export default class Clipboard extends Emitter {
class Clipboard extends Emitter {
/**
* @param {String|HTMLElement|HTMLCollection|NodeList} trigger
* @param {Object} options
@@ -113,3 +113,5 @@ function getAttributeValue(suffix, element) {
return element.getAttribute(attribute);
}
module.exports = Clipboard;