Permalink
Browse files

Fixed double `class` appending

  • Loading branch information...
1 parent e062e7f commit 2eef8411e86adc88dc260896f5823cb2db8ffb3f @ViliamKopecky ViliamKopecky committed Sep 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 widearea.js
View
@@ -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);

0 comments on commit 2eef841

Please sign in to comment.