Replace L.Mixin.Events with L.Evented (#103)

This commit is contained in:
Norbert Renner 2018-02-05 17:40:53 +01:00
parent 2fe7defe1c
commit 20ddb88562
4 changed files with 4 additions and 8 deletions

View file

@ -1,4 +1,4 @@
BR.Profile = L.Class.extend({
BR.Profile = L.Evented.extend({
cache: {},
initialize: function () {
@ -73,5 +73,3 @@ BR.Profile = L.Class.extend({
});
}
});
BR.Profile.include(L.Mixin.Events);

View file

@ -100,4 +100,4 @@ BR.RoutingOptions = BR.Control.extend({
}
});
BR.RoutingOptions.include(L.Mixin.Events);
BR.RoutingOptions.include(L.Evented.prototype);

View file

@ -1,4 +1,4 @@
BR.TrackMessages = L.Class.extend({
BR.TrackMessages = L.Evented.extend({
options: {
heading: 'Segment data',
@ -193,5 +193,3 @@ BR.TrackMessages = L.Class.extend({
this._selectedEdge = null;
}
});
BR.TrackMessages.include(L.Mixin.Events);

View file

@ -151,7 +151,7 @@ BR.NogoAreas = L.Control.extend({
}
});
BR.NogoAreas.include(L.Mixin.Events);
BR.NogoAreas.include(L.Evented.prototype);
L.Editable.prototype.createVertexIcon = function (options) {