Skip to content

Commit

Permalink
Release v1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Nov 13, 2015
1 parent 5dba686 commit 3188ffb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 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.4",
"version": "1.5.5",
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"license": "MIT",
"main": "dist/clipboard.js",
Expand Down
9 changes: 7 additions & 2 deletions dist/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* clipboard.js v1.5.4
* clipboard.js v1.5.5
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
Expand Down Expand Up @@ -255,11 +255,16 @@ function select(element) {
var selectedText;

if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
element.select();
element.focus();
element.setSelectionRange(0, element.value.length);

selectedText = element.value;
}
else {
if (element.hasAttribute('contenteditable')) {
element.focus();
}

var selection = window.getSelection();
var range = document.createRange();

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.4",
version: "1.5.5",
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.4",
"version": "1.5.5",
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"repository": "zenorocha/clipboard.js",
"license": "MIT",
Expand Down

0 comments on commit 3188ffb

Please sign in to comment.