Permalink
Browse files

Merge pull request #22 from ViliamKopecky/patch-1

Fixed double `class` appending
  • Loading branch information...
2 parents e062e7f + 2eef841 commit 91c64717b1d2217411c1885254756834e9a476a3 @afshinm afshinm committed Feb 7, 2014
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 91c6471

Please sign in to comment.