mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-55: Correct outdated documentation within setTextContent().
This commit is contained in:
@@ -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