Skip to content

Commit

Permalink
removing warning on recent leaflet versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu_galle committed Jan 13, 2020
1 parent 44c5678 commit 121e643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*/

L.Pattern = L.Class.extend({
includes: [L.Mixin.Events],
// L.Mixin.Events is deprecated
includes: [L.Evented.prototype || L.Mixin.Events],

options: {
x: 0,
Expand Down

0 comments on commit 121e643

Please sign in to comment.