changeset 1894:b697752b35f9

note about a bug Ignore-this: 6cc4dbd36a5cdc32496f114d5649b8e0
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 30 May 2019 08:31:29 +0000
parents 64eeba960168
children a609c419d7b6
files light9/web/live/live.coffee
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light9/web/live/live.coffee	Thu May 30 08:30:27 2019 +0000
+++ b/light9/web/live/live.coffee	Thu May 30 08:31:29 2019 +0000
@@ -344,6 +344,9 @@
     if (value == undefined or (typeof value == "number" and isNaN(value)) or (typeof value == "object" and value != null and not value.id))
       throw new Error("controlChanged sent bad value " + value)
     effectSetting = @activeSettings.effectSettingLookup(device, deviceAttr)
+
+    # sometimes this misses an existing setting, which leads to a mess
+    
     if @shouldBeStored(deviceAttr, value)
       if not effectSetting?
         @_addEffectSetting(device, deviceAttr, value)