@@ -488,7 +488,7 @@ jQuery(function ($) {
488488 }
489489 }
490490
491- mapbutton . bind ( 'click' , { param :
491+ mapbutton . on ( 'click' , { param :
492492 marker . lat + '_' + marker . lon + '_' +
493493 wc . width + '_' + wc . height + '_' +
494494 site + '_' + zoomlevel + '_' + language + '&globe=' + globe } , showIFrame ) ;
@@ -507,7 +507,7 @@ jQuery(function ($) {
507507 . css ( 'padding' , rtl ? '0px 3px 0px 0px' : '0px 0px 0px 3px' ) . css ( 'cursor' , 'pointer' )
508508 . attr ( 'src' , wc . buttonImage ) . attr ( 'srcset' , wc . buttonImage + ' 1x, ' + wc . buttonImage2x + ' 2x' )
509509 . addClass ( 'wmamapbutton noprint' )
510- . bind ( 'click' , { param :
510+ . on ( 'click' , { param :
511511 alat + '_' + alon + '_' +
512512 wc . width + '_' + wc . height + '_' +
513513 site + '_' + zoomlevel + '_' + language
@@ -691,13 +691,13 @@ jQuery(function ($) {
691691 adjusthelper ( ) ;
692692
693693 $ ( 'body' )
694- . bind ( 'mouseup.wmaresize' , function ( e ) {
695- $ ( 'body' ) . unbind ( 'mousemove.wmaresize' ) ;
696- $ ( 'body' ) . unbind ( 'mouseup.wmaresize' ) ;
694+ . on ( 'mouseup.wmaresize' , function ( e ) {
695+ $ ( 'body' ) . off ( 'mousemove.wmaresize' ) ;
696+ $ ( 'body' ) . off ( 'mouseup.wmaresize' ) ;
697697 idle = true ;
698698 wi . resizehelper . hide ( ) ;
699699 } )
700- . bind ( 'mousemove.wmaresize' , function ( e ) {
700+ . on ( 'mousemove.wmaresize' , function ( e ) {
701701 wc . width -= dir * ( e . pageX - lastx ) ;
702702 wc . height += ( e . pageY - lasty ) ;
703703 lastx = e . pageX ; lasty = e . pageY ;
@@ -713,7 +713,7 @@ jQuery(function ($) {
713713 ) ;
714714 } ) ( ) ;
715715
716- $ ( window ) . bind ( 'message' , messageHub ) ;
716+ $ ( window ) . on ( 'message' , messageHub ) ;
717717
718718 // Fire event for other code to extend or integrate with WMA
719719 if ( initPromises . length ) {
0 commit comments