Release v1.5.1

This commit is contained in:
Zeno Rocha 2015-10-27 09:32:43 -07:00
parent 42a459402c
commit 171f438f22
5 changed files with 8 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "clipboard", "name": "clipboard",
"version": "1.5.0", "version": "1.5.1",
"description": "Modern copy to clipboard. No Flash. Just 2kb", "description": "Modern copy to clipboard. No Flash. Just 2kb",
"license": "MIT", "license": "MIT",
"main": "dist/clipboard.js", "main": "dist/clipboard.js",

5
dist/clipboard.js vendored
View File

@ -1,5 +1,5 @@
/*! /*!
* clipboard.js v1.5.0 * clipboard.js v1.5.1
* https://zenorocha.github.io/clipboard.js * https://zenorocha.github.io/clipboard.js
* *
* Licensed MIT © Zeno Rocha * Licensed MIT © Zeno Rocha
@ -259,8 +259,7 @@ function select(element) {
var selectedText; var selectedText;
if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') { if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
element.selectionStart = 0; element.select();
element.selectionEnd = element.value.length;
selectedText = element.value; selectedText = element.value;
} }

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
Package.describe({ Package.describe({
name: "zenorocha:clipboard", name: "zenorocha:clipboard",
summary: "Modern copy to clipboard. No Flash. Just 2kb.", summary: "Modern copy to clipboard. No Flash. Just 2kb.",
version: "1.5.0", version: "1.5.1",
git: "https://github.com/zenorocha/clipboard.js" git: "https://github.com/zenorocha/clipboard.js"
}); });

View File

@ -1,6 +1,6 @@
{ {
"name": "clipboard", "name": "clipboard",
"version": "1.5.0", "version": "1.5.1",
"description": "Modern copy to clipboard. No Flash. Just 2kb", "description": "Modern copy to clipboard. No Flash. Just 2kb",
"repository": "zenorocha/clipboard.js", "repository": "zenorocha/clipboard.js",
"license": "MIT", "license": "MIT",
@ -25,7 +25,7 @@
"babelify": "^6.3.0", "babelify": "^6.3.0",
"browserify": "^11.2.0", "browserify": "^11.2.0",
"good-listener": "^1.1.2", "good-listener": "^1.1.2",
"select": "^1.0.3", "select": "^1.0.4",
"tiny-emitter": "^1.0.0" "tiny-emitter": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {