From e6bb688e3f64a0cc039230319bb7f99aa228f2cd Mon Sep 17 00:00:00 2001 From: harshadchavan Date: Mon, 18 May 2020 22:16:42 -0700 Subject: [PATCH] fixed this pointer in the code Getting continuous errors in a loop, because of this error. It says catch_errors of undefined --- src/litegraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index 31af8cdb0..efd0890a2 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -783,7 +783,7 @@ window.requestAnimationFrame(on_frame); if(that.onBeforeStep) that.onBeforeStep(); - that.runStep(1, !this.catch_errors); + that.runStep(1, !that.catch_errors); if(that.onAfterStep) that.onAfterStep(); } @@ -794,7 +794,7 @@ //execute if(that.onBeforeStep) that.onBeforeStep(); - that.runStep(1, !this.catch_errors); + that.runStep(1, !that.catch_errors); if(that.onAfterStep) that.onAfterStep(); }, interval);