# HG changeset patch # User Drew Perttula # Date 2018-05-24 06:04:12 # Node ID 7ec3eec60ea46331b7fcb287c1b691893afd80d9 # Parent 5c4d6be0f0fe2dd37cd51a6627aaf63be7a0556b fix effects/ add buttons Ignore-this: e2d02723ad54e53fd4a2c90040e0a4a7 diff --git a/light9/web/effects/effects.coffee b/light9/web/effects/effects.coffee --- a/light9/web/effects/effects.coffee +++ b/light9/web/effects/effects.coffee @@ -14,21 +14,21 @@ Polymer is: "light9-effect-class" properties: graph: {type: Object} - uri: {type: String} + uri: {type: Object} onAdd: -> - @$.songEffects.body = {drop: @uri} + @$.songEffects.body = {drop: @uri.value} @$.songEffects.generateRequest() onMomentaryPress: -> - @$.songEffects.body = {drop: @uri, event: 'start'} + @$.songEffects.body = {drop: @uri.value, event: 'start'} @lastPress = @$.songEffects.generateRequest() @lastPress.completes.then (request) => @lastMomentaryNote = request.response.note onMomentaryRelease: -> return unless @lastMomentaryNote - @$.songEffects.body = {drop: @uri, note: @lastMomentaryNote} + @$.songEffects.body = {drop: @uri.value, note: @lastMomentaryNote} @lastMomentaryNote = null @$.songEffects.generateRequest() \ No newline at end of file