Permalink
Browse files

Update BREAKINGCHANGES.md

  • Loading branch information...
1 parent 320d5a2 commit 4508157274bb017acc285542cfacbca598dcc1fc @jacobtoye jacobtoye committed Feb 8, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 BREAKINGCHANGES.md
View
@@ -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;
@@ -25,7 +25,7 @@ map.on('draw:created', function (e) {
#### Old way
-````
+````js
map.on('draw:poly-created', function (e) {
map.addLayer(e.poly);
});
@@ -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.