From 615176b09795e97e0c1cd28e8ae969ff617a8133 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 20 Feb 2017 15:50:08 +0100 Subject: [PATCH] Safety if run without providing a graph --- src/iframe.coffee | 2 +- src/microflo.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iframe.coffee b/src/iframe.coffee index 694d9e5..051ac9b 100644 --- a/src/iframe.coffee +++ b/src/iframe.coffee @@ -19,7 +19,7 @@ class IframeRuntime extends Base @graph.removeListener 'changeProperties', @updateIframe # Update contents on property changes - graph.on 'changeProperties', @updateIframe + graph.on 'changeProperties', @updateIframe if graph # Ensure iframe gets updated do @updateIframe diff --git a/src/microflo.coffee b/src/microflo.coffee index 5e10437..8c8a7ed 100644 --- a/src/microflo.coffee +++ b/src/microflo.coffee @@ -65,7 +65,7 @@ class MicroFloRuntime extends Base @graph.removeListener 'changeProperties', @updatecontainer # Update contents on property changes - graph.on 'changeProperties', @updatecontainer + graph.on 'changeProperties', @updatecontainer if graph super graph openComm: () ->