Skip to content

Commit

Permalink
Set minimum Leaflet version to 0.7 since we are using the leaflet-old…
Browse files Browse the repository at this point in the history
…ie class. refs #221
  • Loading branch information
jacobtoye committed Nov 24, 2013
1 parent 3cba370 commit b85d469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Control.Draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ L.Control.Draw = L.Control.extend({
},

initialize: function (options) {
if (L.version <= "0.5.1") {
throw new Error('Leaflet.draw 0.2.0+ requires Leaflet 0.6.0+. Download latest from https://github.com/Leaflet/Leaflet/');
if (L.version <= "0.7") {

This comment has been minimized.

Copy link
@yohanboniface

yohanboniface Nov 24, 2013

Member

I guess you meant (L.version < "0.7") ?

throw new Error('Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/');
}

L.Control.prototype.initialize.call(this, options);
Expand Down

1 comment on commit b85d469

@jacobtoye
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bah! Thanks :(

Please sign in to comment.