From 2eef8411e86adc88dc260896f5823cb2db8ffb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viliam=20Kopeck=C3=BD?= Date: Tue, 24 Sep 2013 23:34:38 +0200 Subject: [PATCH] Fixed double `class` appending --- widearea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widearea.js b/widearea.js index 68a5e8a..8ac5102 100644 --- a/widearea.js +++ b/widearea.js @@ -141,7 +141,7 @@ fullscreenIcon.onclick = fullscreenIconClickHandler; //add widearea class to textarea - currentTextArea.className += (currentTextArea.className + " widearea").replace(/^\s+|\s+$/g, ""); + currentTextArea.className = (currentTextArea.className + " widearea").replace(/^\s+|\s+$/g, ""); //set wideArea id and increase the stepper currentTextArea.setAttribute("data-widearea-id", this._wideAreaId);