From 20ddb88562cd85cf1a5c8dbe7b2a3cd15298f3e5 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Mon, 5 Feb 2018 17:40:53 +0100 Subject: [PATCH] Replace L.Mixin.Events with L.Evented (#103) --- js/control/Profile.js | 4 +--- js/control/RoutingOptions.js | 2 +- js/control/TrackMessages.js | 4 +--- js/plugin/NogoAreas.js | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/js/control/Profile.js b/js/control/Profile.js index 2a45dd0..ff8b706 100644 --- a/js/control/Profile.js +++ b/js/control/Profile.js @@ -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); diff --git a/js/control/RoutingOptions.js b/js/control/RoutingOptions.js index 0955316..bc70a2b 100644 --- a/js/control/RoutingOptions.js +++ b/js/control/RoutingOptions.js @@ -100,4 +100,4 @@ BR.RoutingOptions = BR.Control.extend({ } }); -BR.RoutingOptions.include(L.Mixin.Events); +BR.RoutingOptions.include(L.Evented.prototype); diff --git a/js/control/TrackMessages.js b/js/control/TrackMessages.js index 59d7fdb..863105a 100644 --- a/js/control/TrackMessages.js +++ b/js/control/TrackMessages.js @@ -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); diff --git a/js/plugin/NogoAreas.js b/js/plugin/NogoAreas.js index e3ae993..c231019 100644 --- a/js/plugin/NogoAreas.js +++ b/js/plugin/NogoAreas.js @@ -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) {