don't overwrite default options if not specified (faster construction)
This commit is contained in:
parent
5bc104237e
commit
3a0b1bf1d5
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user