MediaWiki:Wikiminiatlas.js: Difference between revisions

(Maintenance: mw:RL/MGU / mw:RL/JD - phab:T169385 - deprecated in jQuery 3.0)
Line 699: Line 699:


         $('body')
         $('body')
         .bind('mouseup.wmaresize', function(e) {
         .on('mouseup.wmaresize', function(e) {
           $('body').unbind('mousemove.wmaresize');
           $('body').unbind('mousemove.wmaresize');
           $('body').unbind('mouseup.wmaresize');
           $('body').unbind('mouseup.wmaresize');
Line 705: Line 705:
           wi.resizehelper.hide();
           wi.resizehelper.hide();
         } )
         } )
         .bind('mousemove.wmaresize', function(e) {
         .on('mousemove.wmaresize', function(e) {
           wc.width -= dir*(e.pageX-lastx);
           wc.width -= dir*(e.pageX-lastx);
           wc.height += (e.pageY-lasty);
           wc.height += (e.pageY-lasty);
Line 721: Line 721:
   })();
   })();


   $(window).bind('message', messageHub);
   $(window).on('message', messageHub);


   // Fire event for other code to extend or integrate with WMA
   // Fire event for other code to extend or integrate with WMA