Last modified: 2014-07-15 14:27:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69989, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67989 - [jquery.tipsy] Uses deprecated $.fn.live when using live option
[jquery.tipsy] Uses deprecated $.fn.live when using live option
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: code_quality tipsy
  Show dependency treegraph
 
Reported: 2014-07-14 14:38 UTC by Rainer Rillke @commons.wikimedia
Modified: 2014-07-15 14:27 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rainer Rillke @commons.wikimedia 2014-07-14 14:38:21 UTC
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/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links