Skip to content

Commit

Permalink
Fixed double class appending
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliamKopecky committed Sep 24, 2013
1 parent e062e7f commit 2eef841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widearea.js
Expand Up @@ -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);
Expand Down

0 comments on commit 2eef841

Please sign in to comment.