mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-11 09:20:17 +01:00
Replaced 'if (cond) { ...; return; } if (!cond) { ...; return; }' with 'if (cond) { ... } else { ... }'.
This commit is contained in:
parent
d0b0ba83ba
commit
d6b4bb6352
@ -21,13 +21,10 @@ L.Control.AutoUpdate = L.Control.extend({
|
|||||||
this.pressed = false;
|
this.pressed = false;
|
||||||
this.iconStart.setAttribute('class', 'fa fa-pause');
|
this.iconStart.setAttribute('class', 'fa fa-pause');
|
||||||
this.autoUpdate();
|
this.autoUpdate();
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
if (!this.pressed) {
|
|
||||||
this.pressed = true;
|
this.pressed = true;
|
||||||
this.iconStart.setAttribute('class', 'fa fa-play');
|
this.iconStart.setAttribute('class', 'fa fa-play');
|
||||||
this.stopUpdate();
|
this.stopUpdate();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user