Release v1.5.5

This commit is contained in:
Zeno Rocha
2015-11-13 01:20:15 -08:00
parent 5dba68634e
commit 3188ffbce3
5 changed files with 12 additions and 7 deletions

9
dist/clipboard.js vendored
View File

@@ -1,5 +1,5 @@
/*!
* clipboard.js v1.5.4
* clipboard.js v1.5.5
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
@@ -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();

File diff suppressed because one or more lines are too long