Skip to content

Commit

Permalink
Update BREAKINGCHANGES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoye committed Feb 8, 2013
1 parent 320d5a2 commit 4508157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BREAKINGCHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The vector or marker is accessed by the `layer` property of the event arguments,

#### New way

````
````js
map.on('draw:created', function (e) {
var type = e.layerType,
layer = e.layer;
Expand All @@ -25,7 +25,7 @@ map.on('draw:created', function (e) {

#### Old way

````
````js
map.on('draw:poly-created', function (e) {
map.addLayer(e.poly);
});
Expand All @@ -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 plese see [leaflet.draw.css](https://github.com/Leaflet/Leaflet.draw/blob/master/dist/leaflet.draw.css).

0 comments on commit 4508157

Please sign in to comment.