# HG changeset patch # User Drew Perttula # Date 2018-05-19 23:35:42 # Node ID ee3273dc1589b4d56a6468d0e41f3a526196903f # Parent 92104dcd33e275734025779e717952eb10c4cfa5 restore the code that updates zoomFlattened Ignore-this: cc276917562be6e3a3837f5dc728855a diff --git a/light9/web/timeline/timeline.coffee b/light9/web/timeline/timeline.coffee --- a/light9/web/timeline/timeline.coffee +++ b/light9/web/timeline/timeline.coffee @@ -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?