Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Deprecated Console Output for Leaflet 1.2.0 #772

Merged
merged 6 commits into from
Oct 20, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Draw.Feature.js: Fix Wrong Class
  • Loading branch information
wattnpapa authored Sep 8, 2017
commit 1efd78bfe73501140d302049b7eda1833ee423e7
2 changes: 1 addition & 1 deletion src/draw/handler/Draw.Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ L.Draw.Feature = L.Handler.extend({
var version = L.version.split(".");
//If Version is >= 1.2.0
if(parseInt(version[0],10) === 1 && parseInt(version[1],10) >= 2 ) {
L.Draw.Feature.include(L.Events);
L.Draw.Feature.include(L.Evented.prototype);
} else {
L.Draw.Feature.include(L.Mixin.Events);
}
Expand Down