uses if instead of falsy check
This commit is contained in:
parent
f621ae268b
commit
ed370dce54
@ -118,7 +118,9 @@ GMapsTorqueLayer.prototype = torque.extend({},
|
||||
if(!this.hidden) return this;
|
||||
this.hidden = false;
|
||||
this.play();
|
||||
this.options.steps === 1 && this.redraw();
|
||||
if (this.options.steps === 1){
|
||||
this.redraw();
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
|
@ -164,7 +164,9 @@ L.TorqueLayer = L.CanvasLayer.extend({
|
||||
if(!this.hidden) return this;
|
||||
this.hidden = false;
|
||||
this.play();
|
||||
this.options.steps === 1 && this.redraw();
|
||||
if (this.options.steps === 1){
|
||||
this.redraw();
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user