Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed double `class` appending

  • Loading branch information...
commit 2eef8411e86adc88dc260896f5823cb2db8ffb3f 1 parent e062e7f
@ViliamKopecky ViliamKopecky authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  widearea.js
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.