Changeset - 076f8551ae36
[Not reviewed]
default
0 1 0
Drew Perttula - 6 years ago 2019-06-01 11:03:16
drewp@bigasterisk.com
quiet some logs on live/
Ignore-this: 4e35636eb9b0a74ac777cd1dc2b53f3b
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/live/live.coffee
Show inline comments
 
@@ -310,13 +310,13 @@ class GraphToControls
 
          throw new Error("not uri")
 
      catch
 
        try
 
          value = @graph.floatValue(setting, pred)
 
        catch
 
          value = @graph.stringValue(setting, pred)
 
      log('change: graph contains', devAttr, value)
 
      #log('change: graph contains', devAttr, value)
 

	
 
      if @activeSettings.has(setting)
 
        @activeSettings.setValue(setting, value)
 
        toClear.delete(setting.value)
 
      else
 
        @activeSettings.addSettingsRow(dev, devAttr, setting, value)
 
@@ -467,13 +467,13 @@ coffeeElementSetup(class Light9LiveContr
 

	
 
    newDevs = []
 
    for dc in @graph.sortedUris(@graph.subjects(U('rdf:type'), U(':DeviceClass')))
 
      for dev in @graph.sortedUris(@graph.subjects(U('rdf:type'), dc))
 
        newDevs.push({uri: dev})
 

	
 
    log("controls update now has #{newDevs.length} devices")
 
    #log("controls update now has #{newDevs.length} devices")
 
    syncArray(@, 'devices', newDevs, (a, b) -> a.uri.value == b.uri.value)
 

	
 
    return
 

	
 
    # Tried css columns- big slowdown from relayout as I'm scrolling.
 
    # Tried isotope- seems to only scroll to the right.
0 comments (0 inline, 0 general)