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 Leaflet#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") {
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

0 comments on commit b85d469

Please sign in to comment.