mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-22 13:53:48 +01:00
put single statement if in one line
This commit is contained in:
parent
545f932b94
commit
cd58c9fbc6
@ -34,16 +34,10 @@ export default class extends EventDispatcher {
|
|||||||
|
|
||||||
setAutoUpdate (autoUpdate = true, updateInterval = 1000) {
|
setAutoUpdate (autoUpdate = true, updateInterval = 1000) {
|
||||||
this.updateInterval = updateInterval;
|
this.updateInterval = updateInterval;
|
||||||
|
if (this.autoUpdate === autoUpdate) return;
|
||||||
if (this.autoUpdate === autoUpdate) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.autoUpdate = autoUpdate;
|
this.autoUpdate = autoUpdate;
|
||||||
|
if (autoUpdate) this._update();
|
||||||
if (autoUpdate) {
|
|
||||||
this._update();
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user