bugfixing

This commit is contained in:
Blue 2018-11-20 14:43:12 +03:00
parent 007ed34ed7
commit eccaa98d9a

View File

@ -31,7 +31,7 @@ class SwitchBox extends UI {
} }
setValue(val) { setValue(val) {
if (this._value !== val) { if (this._value !== val) {
this._value = value; this._value = val;
if (this._value) { if (this._value) {
this._input.style.backgroundColor = "#00b6ff"; this._input.style.backgroundColor = "#00b6ff";
this._movable.style.right = 0 + "px"; this._movable.style.right = 0 + "px";