From eccaa98d9a155a8fa25f1af3857082699bbeaa94 Mon Sep 17 00:00:00 2001 From: blue Date: Tue, 20 Nov 2018 14:43:12 +0300 Subject: [PATCH] bugfixing --- ui/editors/switchBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/editors/switchBox.js b/ui/editors/switchBox.js index 682b748..767ca3c 100644 --- a/ui/editors/switchBox.js +++ b/ui/editors/switchBox.js @@ -31,7 +31,7 @@ class SwitchBox extends UI { } setValue(val) { if (this._value !== val) { - this._value = value; + this._value = val; if (this._value) { this._input.style.backgroundColor = "#00b6ff"; this._movable.style.right = 0 + "px";