diff --git a/dist/leaflet.toolbar-src.js b/dist/leaflet.toolbar-src.js index c8e8fa4..346004f 100644 --- a/dist/leaflet.toolbar-src.js +++ b/dist/leaflet.toolbar-src.js @@ -2,7 +2,7 @@ "use strict"; -L.Toolbar = (L.Layer || L.Class).extend({ +L.Toolbar = (L.Toolbar ||L.Layer || L.Class).extend({ statics: { baseClass: 'leaflet-toolbar' }, @@ -16,6 +16,7 @@ L.Toolbar = (L.Layer || L.Class).extend({ }, initialize: function(options) { + this._modes = {}; L.setOptions(this, options); this._toolbar_type = this.constructor._toolbar_class_id; }, @@ -362,4 +363,4 @@ L.toolbar.popup = function(options) { }; -})(window, document); \ No newline at end of file +})(window, document);