Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fire an event on the map when drawing is disabled
  • Loading branch information
ajbeaven committed Oct 16, 2012
1 parent 80816a4 commit 027bcad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/draw/Handler.Draw.js
Expand Up @@ -19,6 +19,11 @@ L.Handler.Draw = L.Handler.extend({
this._map.fire('drawing', { drawingType: this.type });
L.Handler.prototype.enable.call(this);
},

disable: function () {
this._map.fire('drawing-disabled', { drawingType: this.type });
L.Handler.prototype.disable.call(this);
},

addHooks: function () {
if (this._map) {
Expand Down

0 comments on commit 027bcad

Please sign in to comment.