Skip to content

Commit

Permalink
Correct spelling errors in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
garnertb committed May 27, 2015
1 parent 07b1448 commit 70e170a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions BREAKINGCHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ There are a number of changes to the plugin in 0.2 that may break peoples implem

## Event consolidation

Leaflet.draw 0.1 had a created event for each different shape that was created. 0.2 now consolitates these into a single created shape.
Leaflet.draw 0.1 had a created event for each different shape that was created. 0.2 now consolidates these into a single created shape.

The vector or marker is accessed by the `layer` property of the event arguments, the type of layer by the `layerType`.

Expand Down Expand Up @@ -51,4 +51,4 @@ The event argument has also changed from `drawingType` -> `layerType`.

## CSS changes

There has been a whole bunch of CSS changes, if you have customized any of these plese see [leaflet.draw.css](https://github.com/Leaflet/Leaflet.draw/blob/master/dist/leaflet.draw.css).
There has been a whole bunch of CSS changes, if you have customized any of these please see [leaflet.draw.css](https://github.com/Leaflet/Leaflet.draw/blob/master/dist/leaflet.draw.css).
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ L.Draw.Circle = L.Draw.SimpleShape.extend({
clickable: true
},
showRadius: true,
metric: true // Whether to use the metric meaurement system or imperial
metric: true // Whether to use the metric measurement system or imperial
},

initialize: function (map, options) {
Expand Down
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Polyline.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ L.Draw.Polyline = L.Draw.Feature.extend({
fill: false,
clickable: true
},
metric: true, // Whether to use the metric meaurement system or imperial
metric: true, // Whether to use the metric measurement system or imperial
showLength: true, // Whether to display distance in the tooltip
zIndexOffset: 2000 // This should be > than the highest z-index any map layers
},
Expand Down
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ L.Draw.Rectangle = L.Draw.SimpleShape.extend({
fillOpacity: 0.2,
clickable: true
},
metric: true // Whether to use the metric meaurement system or imperial
metric: true // Whether to use the metric measurement system or imperial
},

initialize: function (map, options) {
Expand Down
2 changes: 1 addition & 1 deletion src/edit/handler/Edit.Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ L.Edit.Marker = L.Handler.extend({
_toggleMarkerHighlight: function () {

// Don't do anything if this layer is a marker but doesn't have an icon. Markers
// should usually have icons. If using Leaflet.draw with Leafler.markercluster there
// should usually have icons. If using Leaflet.draw with Leaflet.markercluster there
// is a chance that a marker doesn't.
if (!this._icon) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/edit/handler/EditToolbar.Delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ L.EditToolbar.Delete = L.Handler.extend({

layer.off('click', this._removeLayer, this);

// Remove from the deleted layers so we can't accidently revert if the user presses cancel
// Remove from the deleted layers so we can't accidentally revert if the user presses cancel
this._deletedLayers.removeLayer(layer);
},

Expand Down

0 comments on commit 70e170a

Please sign in to comment.