uses if instead of falsy check

This commit is contained in:
Francisco Dans 2015-06-15 14:29:22 +02:00
parent f621ae268b
commit ed370dce54
2 changed files with 6 additions and 2 deletions

View File

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

View File

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