Skip to content

Commit

Permalink
Rectangle.setBounds() must return a value
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSanchez committed Aug 28, 2015
1 parent da8149c commit e698f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/vector/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ L.Rectangle = L.Polygon.extend({
},

setBounds: function (latLngBounds) {
this.setLatLngs(this._boundsToLatLngs(latLngBounds));
return this.setLatLngs(this._boundsToLatLngs(latLngBounds));
},

_boundsToLatLngs: function (latLngBounds) {
Expand Down

0 comments on commit e698f64

Please sign in to comment.