0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-22 22:03:48 +01:00

put single statement if in one line

This commit is contained in:
casperlamboo 2016-04-21 15:05:15 +02:00
parent 545f932b94
commit cd58c9fbc6

View File

@ -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;
} }