Moves from Node's require to ES6's import syntax

This commit is contained in:
Zeno Rocha 2015-09-26 17:31:18 -07:00
parent 1acd23049e
commit 467684333f
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -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));
}
/**