From 296d7ebec418c39dd97d3d1fa123e0ed29856a93 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 15 May 2013 13:50:56 -0700 Subject: [PATCH] Don't fill DOM with a ton of class="undefined". --- guacamole/src/main/webapp/scripts/guac-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/scripts/guac-ui.js b/guacamole/src/main/webapp/scripts/guac-ui.js index f06f43c8d..eec77a6d9 100644 --- a/guacamole/src/main/webapp/scripts/guac-ui.js +++ b/guacamole/src/main/webapp/scripts/guac-ui.js @@ -32,7 +32,7 @@ GuacUI.sessionState = new GuacamoleSessionState(); */ GuacUI.createElement = function(tagname, classname) { var new_element = document.createElement(tagname); - new_element.className = classname; + if (classname) new_element.className = classname; return new_element; };