From 1ecdfb1c06bf423517255aaef608d1b700411d73 Mon Sep 17 00:00:00 2001 From: Diego Dorado Date: Thu, 18 Oct 2018 17:03:35 -0300 Subject: [PATCH] changes tidalRepl and consoleView references to be accesibles from outside --- lib/tidalcycles.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tidalcycles.js b/lib/tidalcycles.js index 4673648..0931d7b 100644 --- a/lib/tidalcycles.js +++ b/lib/tidalcycles.js @@ -23,13 +23,13 @@ export default { }, activate(state) { - consoleView = new ConsoleView(state.consoleViewState); - tidalRepl = new Repl(consoleView); + this.consoleView = new ConsoleView(state.consoleViewState); + this.tidalRepl = new Repl(this.consoleView); }, deactivate() { - consoleView.destroy(); - tidalRepl.destroy(); + this.consoleView.destroy(); + this.tidalRepl.destroy(); }, serialize() {