use event's currentTarget instead of target

This commit is contained in:
Paul Felice
2015-11-06 15:49:21 +01:00
parent db575bb4df
commit 37136663df
2 changed files with 19 additions and 5 deletions

View File

@@ -47,10 +47,10 @@ class Clipboard extends Emitter {
}
this.clipboardAction = new ClipboardAction({
action : this.action(e.target),
target : this.target(e.target),
text : this.text(e.target),
trigger : e.target,
action : this.action(e.currentTarget),
target : this.target(e.currentTarget),
text : this.text(e.currentTarget),
trigger : e.currentTarget,
emitter : this
});
}