Renames "initialize" method to "onClick" #51

This commit is contained in:
Zeno Rocha
2015-10-03 16:44:47 -07:00
parent 8fa31029ac
commit cc9d562580
2 changed files with 5 additions and 5 deletions

View File

@@ -34,14 +34,14 @@ class Clipboard extends Emitter {
* @param {String} selector
*/
delegateClick(selector) {
Delegate.bind(document.body, selector, 'click', (e) => this.initialize(e));
Delegate.bind(document.body, selector, 'click', (e) => this.onClick(e));
}
/**
* Defines a new `ClipboardAction` on each click event.
* @param {Event} e
*/
initialize(e) {
onClick(e) {
if (this.clipboardAction) {
this.clipboardAction = null;
}