You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From now on, if CustomEvent is available in the browser, I use it instead of JQuery, and vice-versa. This may be wrong indeed.
What do you think if I remove the else and fire both if both CustomEvent and jQuery are available ?
Will jQuery receive the CustomEvent in addition to the jQuery.Event ?
Could you please help me find out, using a jsfiddle or something ?
I just pushed a fix that should work in most cases (updated the example in README too).
If some problems persist, please try using the bundled events polyfills and let me know :)
Hi,
since 0.8.0 my map load to fail since when doing :
$(window).on('map:init', function (e) { ... });
'e' doesn't contain the 'map' attribute.
By looking a bit in the debugger it seems that new CustomEvent(type, data); [leaflet-extras.js:210] doesn't add the data to the evt.
This problem seems to have been introduced by c14ff11 (we are using jquery here)
The text was updated successfully, but these errors were encountered: