From aadde22a4e887c3990e048d5f27b43f08824157a Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 19 Aug 2016 16:07:55 +0200 Subject: [PATCH] setautoupdate always returns true --- src/doodle3dbox.js | 2 +- src/doodle3dmanager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();