Skip to content

Commit

Permalink
Merge pull request #139 from yohanboniface/allow_disable
Browse files Browse the repository at this point in the history
Allow to disable handlers again
  • Loading branch information
jacobtoye committed May 26, 2013
2 parents f015e8c + b565b3d commit 8a854d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/draw/DrawToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ L.DrawToolbar = L.Toolbar.extend({
// Ensure that the options are merged correctly since L.extend is only shallow
for (var type in this.options) {
if (this.options.hasOwnProperty(type)) {
options[type] = L.extend({}, this.options[type], options[type]);
if (options[type]) {
options[type] = L.extend({}, this.options[type], options[type]);
}
}
}

Expand Down

0 comments on commit 8a854d8

Please sign in to comment.