From c68cedd6522de42e599a87b8969138672722ac10 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 29 Jun 2016 15:27:51 -0700 Subject: [PATCH] GUACAMOLE-55: Correct outdated documentation within setTextContent(). --- .../main/webapp/app/clipboard/services/clipboardService.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js b/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js index 06667562e..9c43ab455 100644 --- a/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js +++ b/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js @@ -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; };