Remove old layout Control superclass, now obsolete (#111)

This commit is contained in:
Norbert Renner 2018-07-12 20:28:22 +02:00
parent 4d4b344793
commit 9112d0984c
4 changed files with 6 additions and 56 deletions

View file

@ -1,6 +1,6 @@
BR.RoutingOptions = BR.Control.extend({
BR.RoutingOptions = L.Evented.extend({
onAdd: function (map) {
initialize: function () {
$('#profile-alternative').on('changed.bs.select', this._getChangeHandler());
// build option list from config
@ -16,7 +16,6 @@ BR.RoutingOptions = BR.Control.extend({
profiles_list.children[0].value = "Custom";
// <custom> profile is empty at start, select next one
profiles_list.children[1].selected = true;
return BR.Control.prototype.onAdd.call(this, map);
},
refreshUI: function() {
@ -106,5 +105,3 @@ BR.RoutingOptions = BR.Control.extend({
}, this);
}
});
BR.RoutingOptions.include(L.Evented.prototype);