Skip to content

Commit

Permalink
Release v1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Nov 13, 2015
1 parent cb43016 commit a12a056
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipboard",
"version": "1.5.3",
"version": "1.5.4",
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"license": "MIT",
"main": "dist/clipboard.js",
Expand Down
20 changes: 9 additions & 11 deletions dist/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* clipboard.js v1.5.3
* clipboard.js v1.5.4
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
Expand Down Expand Up @@ -92,13 +92,9 @@ function delegate(element, selector, type, callback) {
*/
function listener(element, selector, type, callback) {
return function(e) {
var delegateTarget = closest(e.target, selector, true);

if (delegateTarget) {
Object.defineProperty(e, 'target', {
value: delegateTarget
});
e.delegateTarget = closest(e.target, selector, true);

if (e.delegateTarget) {
callback.call(element, e);
}
}
Expand Down Expand Up @@ -665,15 +661,17 @@ var Clipboard = (function (_Emitter) {
*/

Clipboard.prototype.onClick = function onClick(e) {
var trigger = e.delegateTarget || e.currentTarget;

if (this.clipboardAction) {
this.clipboardAction = null;
}

this.clipboardAction = new _clipboardAction2['default']({
action: this.action(e.target),
target: this.target(e.target),
text: this.text(e.target),
trigger: e.target,
action: this.action(trigger),
target: this.target(trigger),
text: this.text(trigger),
trigger: trigger,
emitter: this
});
};
Expand Down
4 changes: 2 additions & 2 deletions dist/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Package.describe({
name: "zenorocha:clipboard",
summary: "Modern copy to clipboard. No Flash. Just 2kb.",
version: "1.5.3",
version: "1.5.4",
git: "https://github.com/zenorocha/clipboard.js"
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipboard",
"version": "1.5.3",
"version": "1.5.4",
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"repository": "zenorocha/clipboard.js",
"license": "MIT",
Expand Down

0 comments on commit a12a056

Please sign in to comment.