GUACAMOLE-55: Correct outdated documentation within setTextContent().
This commit is contained in:
1 parent
3f51a6dd98
commit
c68cedd652
1 file changed
+1
-4
@@ -306,11 +306,8 @@ angular.module('clipboard').factory('clipboardService', ['$injector',
|
||||
*/
|
||||
service.setTextContent = function setTextContent(element, text) {
|
||||
|
||||
// Strip out any non-text content while preserving cursor position
|
||||
var textContent = service.getTextContent(element);
|
||||
|
||||
// Reset text content only if doing so will actually change the content
|
||||
if (textContent !== text)
|
||||
if (service.getTextContent(element) !== text)
|
||||
element.textContent = text;
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user