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

View File

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