From 2f948067a784c7e569f96bdee54355adaffcc7fb Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Thu, 24 Oct 2019 19:27:41 +0100 Subject: [PATCH] Pass Ground VM to stopHandlers --- packages/core/src/ground.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/ground.js b/packages/core/src/ground.js index 9f336d6..64f0332 100644 --- a/packages/core/src/ground.js +++ b/packages/core/src/ground.js @@ -73,7 +73,7 @@ Ground.prototype._step = function () { this.start(); } else { if (!this.backgroundTaskCount) { - this.stopHandlers.forEach((h) => h()); + this.stopHandlers.forEach((h) => h(this)); this.stopHandlers = []; } }