Modified comments and changed element type for "ClipboardAction" class;

This commit is contained in:
Maxim Lebedinets 2015-09-30 20:52:48 +03:00
parent c041e2a8f0
commit e4f3fb226c
2 changed files with 3 additions and 3 deletions

2
dist/clipboard.js vendored
View File

@ -265,7 +265,7 @@ var ClipboardAction = (function () {
};
/**
* Creates a fake input element, sets its value from `text` property,
* Creates a fake textarea element, sets its value from `text` property,
* and makes a selection on it.
*/

View File

@ -45,7 +45,7 @@ class ClipboardAction {
}
/**
* Creates a fake input element, sets its value from `text` property,
* Creates a fake textarea element, sets its value from `text` property,
* and makes a selection on it.
*/
selectFake() {
@ -53,7 +53,7 @@ class ClipboardAction {
this.fakeHandler = document.body.addEventListener('click', () => this.removeFake());
this.fakeElem = document.createElement('input');
this.fakeElem = document.createElement('textarea');
this.fakeElem.style.position = 'absolute';
this.fakeElem.style.left = '-9999px';
this.fakeElem.setAttribute('readonly', '');