backdrop-contrib / ip_geoloc

IP Geolocation Views & Maps for Backdrop CMS.
GNU General Public License v2.0
0 stars 2 forks source link

Use of deprecated jQuery.bind() function in JS #16

Open indigoxela opened 2 months ago

indigoxela commented 2 months ago

Saw it occasionally, while searching for something else:

https://github.com/search?q=repo%3Abackdrop-contrib%2Fip_geoloc+%29.bind%28&type=code

As of jQuery 3.0, .bind() has been deprecated (Backdrop CMS ships with jQuery 3.x by default).

https://api.jquery.com/bind/

Fixing is easy, use "on" instead. Like jQuery(document).on('leaflet.map', function(event, map, lMap) {