diff --git a/browser/js/app/widgets/visualizer.js b/browser/js/app/widgets/visualizer.js index 8fddbb0b..97d6fa5d 100644 --- a/browser/js/app/widgets/visualizer.js +++ b/browser/js/app/widgets/visualizer.js @@ -17,7 +17,7 @@ module.exports.options = { separator2:'plot', - curve:'', + widgetId:'', duration:1, range: {min:0,max:1}, logScale: false, @@ -70,7 +70,7 @@ module.exports.create = function(widgetData,container) { }) $('body').on('sync',function(e,id,w){ - if (widgetData.curve!=id || !document.contains(widget[0])) return + if (widgetData.widgetId!=id || !document.contains(widget[0])) return widget.startLoop() }) @@ -148,7 +148,7 @@ module.exports.create = function(widgetData,container) { widget.fetchValue = function(){ - var id = widgetData.curve + var id = widgetData.widgetId if (typeof id == 'string' && WIDGETS[id]) { widget.data.push(WIDGETS[id][WIDGETS[id].length-1].getValue()) diff --git a/examples/plot.js b/examples/plot.js index 237c9ae3..71477138 100644 --- a/examples/plot.js +++ b/examples/plot.js @@ -137,7 +137,7 @@ "height": 122, "css": "", "id": "visualizer_(fader_1)", - "curve": "fader_1", + "widgetId": "fader_1", "duration": 1, "range": { "min": 0, @@ -309,7 +309,7 @@ "width": "auto", "height": "auto", "css": "", - "curve": "", + "widgetId": "", "duration": 1, "range": { "min": 0, @@ -367,4 +367,4 @@ } ] } -] \ No newline at end of file +]