amplesdk
amplesdk copied to clipboard
Setting class attribute on elements in certain UI state removes the state CSS
For example you have an element being draggable. Now, if you call setAttribute("class", "newclass") the ":drag" pseudo-class is not applied any more.