https://bugzilla.wikimedia.org/show_bug.cgi?id=67989

            Bug ID: 67989
           Summary: [jquery.tipsy] Uses deprecated $.fn.live when using
                    live option
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
            Blocks: 67500
       Web browser: ---
   Mobile Platform: ---

Original bug title:
[jquery.tipsy] Uses deprecated $.fn.live when using live option

Minimal test case:
mw.loader.using( 'jquery.tipsy', function() {
    $( '<div>' )
        .tipsy( {
            live: true
        } );
} );

Evidence:
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/dcdca4944dec1228b6ca38955298c8a541f01378/resources%2Fsrc%2Fjquery.tipsy%2Fjquery.tipsy.js#L186

var binder = options.live ? 'live' : 'bind',
    eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
    eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
this[ binder ]( eventIn, enter )[ binder ]( eventOut, leave );

Expected:
Work around according to http://api.jquery.com/live/

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to