Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed double `class` appending #22

Merged
merged 1 commit into from

4 participants

@ViliamKopecky

It did this bad thing:

<textarea class="original-classname"></textarea>
<textarea class="original-classnameoriginal-classname widearea"></textarea>
@heroicyang

I am also the same problem.

@afshinm afshinm merged commit 91c6471 into usablica:master
@afshinm
Owner

Thanks.

@connyay connyay referenced this pull request
Open

bug report #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 24, 2013
  1. @ViliamKopecky
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.