X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery.tipsy%2Fjquery.tipsy.js;h=a5e51843dede7dbe26024c7064856b7da7f8a32c;hb=3353ced6cd3148de1549568ee9633a913fd5faab;hp=2c6a5887e00977a22c11702b0843a5134a43a283;hpb=13e788862bc4349d732286970d57cd8375a7d774;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery.tipsy/jquery.tipsy.js b/resources/src/jquery.tipsy/jquery.tipsy.js index 2c6a5887e0..a5e51843de 100644 --- a/resources/src/jquery.tipsy/jquery.tipsy.js +++ b/resources/src/jquery.tipsy/jquery.tipsy.js @@ -6,7 +6,7 @@ // * This installation of tipsy includes several local modifications to both Javascript and CSS. // Please be careful when upgrading. -( function ( mw, $ ) { +( function () { function maybeCall(thing, ctx) { return (typeof thing == 'function') ? (thing.call(ctx)) : thing; @@ -197,24 +197,18 @@ } }; - if (!options.live) this.each(function() { get(this); }); + this.each(function() { get(this); }); if ( options.trigger != 'manual' ) { var eventIn = options.trigger == 'hover' ? 'mouseenter focus' : 'focus', eventOut = options.trigger == 'hover' ? 'mouseleave blur' : 'blur'; if ( options.live ) { mw.track( 'mw.deprecate', 'tipsy-live' ); - mw.log.warn( 'Use of the "live" option of jquery.tipsy is deprecated.' ); - // XXX: The official status of 'context' is deprecated, and the official status of - // 'selector' is removed, so this really needs to go. - $( this.context ) - .on( eventIn, this.selector, enter ) - .on( eventOut, this.selector, leave ); - } else { - this - .on( eventIn, enter ) - .on( eventOut, leave ); + mw.log.warn( 'Use of the "live" option of jquery.tipsy is no longer supported.' ); } + this + .on( eventIn, enter ) + .on( eventOut, leave ); } return this; @@ -284,4 +278,4 @@ } }; -}( mediaWiki, jQuery ) ); +}() );