Changeset - 3368aeaded44
[Not reviewed]
default
0 1 0
Drew Perttula - 7 years ago 2018-05-28 00:25:29
drewp@bigasterisk.com
fix note update
Ignore-this: 213c42b10be25b0fd59c68d5ba3bdda3
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -426,26 +426,26 @@ coffeeElementSetup(class TimeAxis extend
 
    ko.computed =>
 
      dependOn = [@viewState.zoomSpec.t1(), @viewState.zoomSpec.t2()]
 
      pxPerTick = 50
 
      axis = d3.axisTop(@viewState.zoomInX).ticks(@viewState.width() / pxPerTick)
 
      d3.select(@$.axis).call(axis)
 
)
 

	
 

	
 
# Maintains a pixi object, some adjusters, and inlineattrs corresponding to a note
 
# in the graph.
 
class Note
 
  constructor: (@parentElem, @container, @project, @graph, @selection, @uri, @setAdjuster, @song, @viewState, @rowTopY, @rowBotY) ->
 
    @adjusterIds = new Set() # id
 
    @graph.runHandler(@draw.bind(@), 'note draw')
 
    @adjusterIds = new Set() # id string
 
    @graph.runHandler(@draw.bind(@), "note draw #{@uri.value}")
 
    ko.computed @draw.bind(@)
 

	
 
  destroy: ->
 
    log('destroy', @uri.value)
 
    @isDetached = true
 
    @clearAdjusters()
 
    @parentElem.updateInlineAttrs(@uri, null)
 

	
 
  clearAdjusters: ->
 
    for i in @adjusterIds.keys()
 
      @setAdjuster(i, null)
 
    @adjusterIds.clear()
0 comments (0 inline, 0 general)