From 558533d1a3d0f45b05639a5f112a54c22b985ad8 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 20 Feb 2017 22:04:18 +0100 Subject: [PATCH] Persist manually added runtimes, refs noflo/noflo-nodejs#105 --- elements/noflo-main.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elements/noflo-main.html b/elements/noflo-main.html index e567a6451..aa074390f 100644 --- a/elements/noflo-main.html +++ b/elements/noflo-main.html @@ -543,8 +543,7 @@

{{ label }}

var dialog = document.createElement('noflo-new-runtime'); dialog.addEventListener('addRuntime', function(event) { var runtime = event.detail; - this.userRuntimes.push(runtime); - this.runtimes.push(runtime); + this.fire('runtime', event.detail); }.bind(this)); dialog.user = this.user; document.body.appendChild(dialog);