fixed this pointer in the code

Getting continuous errors in a loop, because of this error. It says catch_errors of undefined
This commit is contained in:
harshadchavan
2020-05-18 22:16:42 -07:00
committed by GitHub
parent 94f657a401
commit e6bb688e3f

View File

@@ -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);