Skip to content

Commit

Permalink
Merge pull request #219 from yohanboniface/setoptions
Browse files Browse the repository at this point in the history
Do not share options between Draw.Feature instances
  • Loading branch information
jacobtoye committed Nov 19, 2013
2 parents f4aec07 + 43d9f50 commit 590f096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ L.Draw.Feature = L.Handler.extend({
if (options && options.shapeOptions) {
options.shapeOptions = L.Util.extend({}, this.options.shapeOptions, options.shapeOptions);
}
L.Util.extend(this.options, options);
L.setOptions(this, options);
},

enable: function () {
Expand Down

0 comments on commit 590f096

Please sign in to comment.