Remove deprecated use of L.Mixin.Events

This commit is contained in:
Yohan Boniface 2018-08-30 09:38:59 +02:00
parent d1c134150f
commit a0fb623661
3 changed files with 5 additions and 8 deletions

View file

@ -1003,8 +1003,7 @@ L.U.ContextMenu = L.Map.ContextMenu.extend({
}); });
L.U.IframeExporter = L.Class.extend({ L.U.IframeExporter = L.Evented.extend({
includes: [L.Mixin.Events],
options: { options: {
includeFullScreenLink: true, includeFullScreenLink: true,

View file

@ -463,7 +463,7 @@ L.U.FeatureMixin = {
L.U.Marker = L.Marker.extend({ L.U.Marker = L.Marker.extend({
parentClass: L.Marker, parentClass: L.Marker,
includes: [L.U.FeatureMixin, L.Mixin.Events], includes: [L.U.FeatureMixin],
preInit: function () { preInit: function () {
this.setIcon(this.getIcon()); this.setIcon(this.getIcon());
@ -822,7 +822,7 @@ L.U.PathMixin = {
L.U.Polyline = L.Polyline.extend({ L.U.Polyline = L.Polyline.extend({
parentClass: L.Polyline, parentClass: L.Polyline,
includes: [L.U.FeatureMixin, L.U.PathMixin, L.Mixin.Events], includes: [L.U.FeatureMixin, L.U.PathMixin],
staticOptions: { staticOptions: {
stroke: true, stroke: true,
@ -959,7 +959,7 @@ L.U.Polyline = L.Polyline.extend({
L.U.Polygon = L.Polygon.extend({ L.U.Polygon = L.Polygon.extend({
parentClass: L.Polygon, parentClass: L.Polygon,
includes: [L.U.FeatureMixin, L.U.PathMixin, L.Mixin.Events], includes: [L.U.FeatureMixin, L.U.PathMixin],
isSameClass: function (other) { isSameClass: function (other) {
return other instanceof L.U.Polygon; return other instanceof L.U.Polygon;

View file

@ -146,9 +146,7 @@ L.U.Layer.Heat = L.HeatLayer.extend({
}); });
L.U.DataLayer = L.Class.extend({ L.U.DataLayer = L.Evented.extend({
includes: [L.Mixin.Events],
options: { options: {
displayOnLoad: true, displayOnLoad: true,