0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-11-14 00:17:55 +01:00

setautoupdate always returns true

This commit is contained in:
casperlamboo 2016-08-19 16:07:55 +02:00
parent f499693465
commit aadde22a4e
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export default class Doodle3DBox extends EventDispatcher {
}
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
this.updateInterval = updateInterval;
if (this.autoUpdate === autoUpdate) return;
if (this.autoUpdate === autoUpdate) return this;
this.autoUpdate = autoUpdate;
if (autoUpdate) this._update();

View File

@ -24,7 +24,7 @@ export default class Doodle3DManager extends EventDispatcher {
}
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
this.updateInterval = updateInterval;
if (this.autoUpdate === autoUpdate) return;
if (this.autoUpdate === autoUpdate) return this;
this.autoUpdate = autoUpdate;
if (autoUpdate) this._update();