Updates delegate package which now exposes e.delegateTarget property #120

This commit is contained in:
Zeno Rocha
2015-11-13 00:24:46 -08:00
parent 5efcdf2810
commit cb4301658c
3 changed files with 10 additions and 6 deletions

View File

@@ -42,15 +42,17 @@ class Clipboard extends Emitter {
* @param {Event} e
*/
onClick(e) {
var trigger = e.delegateTarget || e.currentTarget;
if (this.clipboardAction) {
this.clipboardAction = null;
}
this.clipboardAction = new ClipboardAction({
action : this.action(e.currentTarget),
target : this.target(e.currentTarget),
text : this.text(e.currentTarget),
trigger : e.currentTarget,
action : this.action(trigger),
target : this.target(trigger),
text : this.text(trigger),
trigger : trigger,
emitter : this
});
}