Skip to content

Commit

Permalink
Actually enable the draw handler before firing the enable event.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoye committed Apr 30, 2014
1 parent ed8a1c4 commit 6bd1cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/draw/handler/Draw.Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ L.Draw.Feature = L.Handler.extend({
enable: function () {
if (this._enabled) { return; }

L.Handler.prototype.enable.call(this);

this.fire('enabled', { handler: this.type });

this._map.fire('draw:drawstart', { layerType: this.type });

L.Handler.prototype.enable.call(this);
},

disable: function () {
Expand Down

0 comments on commit 6bd1cac

Please sign in to comment.