From 3ccef03ac7d515bffdb0db4aa17689bc6e390269 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 5 Mar 2015 18:04:32 +0100 Subject: [PATCH] fixed bug --- showcase/projects/bridge/demo.html | 1 + showcase/projects/bridge/js/timelineAgent.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/showcase/projects/bridge/demo.html b/showcase/projects/bridge/demo.html index 0ad2720c..a653869c 100644 --- a/showcase/projects/bridge/demo.html +++ b/showcase/projects/bridge/demo.html @@ -24,6 +24,7 @@ // called from agent function addToDataset(item) { + console.log(item) data.add(item); } // called from agent diff --git a/showcase/projects/bridge/js/timelineAgent.js b/showcase/projects/bridge/js/timelineAgent.js index 3a7d5da9..dcef4927 100644 --- a/showcase/projects/bridge/js/timelineAgent.js +++ b/showcase/projects/bridge/js/timelineAgent.js @@ -38,7 +38,7 @@ timelineAgent.prototype.connectToProxy = function() { }; timelineAgent.prototype.rpcFunctions.addTimelineEvent = function(params,sender) { - addToDataset(params.item); + addToDataset(params); }; timelineAgent.prototype.rpcFunctions.resetTimelineEvents = function(params,sender) {