Changeset - ee3273dc1589
[Not reviewed]
default
0 1 0
Drew Perttula - 7 years ago 2018-05-19 23:35:42
drewp@bigasterisk.com
restore the code that updates zoomFlattened
Ignore-this: cc276917562be6e3a3837f5dc728855a
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -295,6 +295,7 @@ coffeeElementSetup(class TimeZoomed exte
 
    inlineAttrConfigs: { type: Array, value: [] } # only for inlineattrs that should be displayed
 
  @getter_observers: [
 
    '_onGraph(graph, setAdjuster, song, viewState, project)',
 
    'onZoom(viewState)',
 
  ]
 
  constructor: ->
 
    super()
 
@@ -334,7 +335,12 @@ coffeeElementSetup(class TimeZoomed exte
 
  _onGraph: (graph, setAdjuster, song, viewState, project)->
 
    return unless @song # polymer will call again
 
    @graph.runHandler(@gatherNotes.bind(@), 'zoom notes')
 
    
 
  onZoom: ->
 
    updateZoomFlattened = ->
 
      log('updateZoomFlattened')
 
      @zoomFlattened = ko.toJS(@viewState.zoomSpec)
 
    ko.computed(updateZoomFlattened.bind(@))
 

	
 
  gatherNotes: ->
 
    U = (x) => @graph.Uri(x)
 
    return unless @song?
0 comments (0 inline, 0 general)