From cfed4e1bba7a7eed441ce691d5306f721a0ac72b Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Wed, 1 Jun 2016 10:26:06 -0400 Subject: [PATCH] Add "stack click" event handler to VM See: https://github.com/LLK/scratch-blocks/pull/360 --- src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.js b/src/index.js index d6e05e970..d128aab90 100644 --- a/src/index.js +++ b/src/index.js @@ -55,6 +55,9 @@ function VirtualMachine () { id: e.blockId }); break; + case 'stackclick': + instance.runtime.toggleStack(e.blockId); + break; } }; @@ -76,6 +79,9 @@ function VirtualMachine () { id: e.blockId }); break; + case 'stackclick': + instance.runtime.toggleStack(e.blockId); + break; } }; }