1
0
mirror of https://bitbucket.org/s_l_teichmann/mtsatellite synced 2025-06-30 15:10:55 +02:00

Replaced 'if (cond) { ...; return; } if (!cond) { ...; return; }' with 'if (cond) { ... } else { ... }'.

This commit is contained in:
Sascha L. Teichmann
2015-03-08 13:39:02 +01:00
parent d0b0ba83ba
commit d6b4bb6352

@ -21,13 +21,10 @@ L.Control.AutoUpdate = L.Control.extend({
this.pressed = false;
this.iconStart.setAttribute('class', 'fa fa-pause');
this.autoUpdate();
return;
}
if (!this.pressed) {
} else {
this.pressed = true;
this.iconStart.setAttribute('class', 'fa fa-play');
this.stopUpdate();
return;
}
},