Skip to content

Commit

Permalink
Removed superfluous if block
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Stull committed Oct 5, 2012
1 parent 4d4ce0c commit de9d6c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/draw/shapes/SimpleShape.Draw.js
Expand Up @@ -50,15 +50,11 @@ L.SimpleShape.Draw = L.Handler.Draw.extend({

_onMouseMove: function (e) {
var layerPoint = e.layerPoint,
latlng = e.latlng;
latlng = e.latlng;

if (this._isDrawing) {
this._updateLabelText({ text: 'Release mouse to finish drawing.' });
}
this._updateLabelPosition(layerPoint);

if (this._isDrawing) {
this._updateLabelPosition(layerPoint);
this._updateLabelText({ text: 'Release mouse to finish drawing.' });
this._drawShape(latlng);
}
},
Expand Down

0 comments on commit de9d6c0

Please sign in to comment.