diff --git a/src/doodle3dbox.js b/src/doodle3dbox.js index fb85173..fd3c6fe 100644 --- a/src/doodle3dbox.js +++ b/src/doodle3dbox.js @@ -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(); diff --git a/src/doodle3dmanager.js b/src/doodle3dmanager.js index 871d7f9..3b8ddac 100644 --- a/src/doodle3dmanager.js +++ b/src/doodle3dmanager.js @@ -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();