diff --git a/src/core/Util.js b/src/core/Util.js index afc7a049..92a05c2e 100644 --- a/src/core/Util.js +++ b/src/core/Util.js @@ -107,7 +107,9 @@ L.Util = { }, setOptions: function (obj, options) { - obj.options = L.extend({}, obj.options, options); + if (options) { + obj.options = L.extend({}, obj.options, options); + } return obj.options; },