Merge pull request #141 from harshadchavan/patch-1

fixed this pointer in the code
This commit is contained in:
Javi Agenjo
2020-05-19 09:12:08 +02:00
committed by GitHub

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