From 057cee51f8c1687c7fff711ebb25cf9448c73882 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 2 Aug 2019 10:44:56 -0700 Subject: [PATCH] Added disposed property to blocks (for use in unit tests). --- core/block.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/block.js b/core/block.js index 6eb1f3628..9a5b32200 100644 --- a/core/block.js +++ b/core/block.js @@ -322,6 +322,8 @@ Blockly.Block.prototype.dispose = function(healStack) { } finally { Blockly.Events.enable(); } + + this.disposed = true; }; /**