jquery.tipsy: Unbreak the 'live' option for now
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 20 Dec 2014 00:17:17 +0000 (01:17 +0100)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 20 Dec 2014 01:49:52 +0000 (20:49 -0500)
commitaa524075ac734fbf584bb9ff69fa10ec2883df20
tree9342e1075ea7d61d93edf3dde48dadf95d99c812
parente27ff73b3221a977639de1bd18c8bbb0ed78805c
jquery.tipsy: Unbreak the 'live' option for now

It used jQuery.fn.live, which stopped existing when we removed jQuery
Migrate (c393f874). This patch basically reimplements it.

Both .context and .selector properties used here are deprecated and
will be removed in the future, so we should come up with a better
solution at some point (or intentionally disallow using this option,
rather than breaking it by accident). For now, re-added the tracking
and logging, like what jQuery Migrate provided.

https://api.jquery.com/context/
https://api.jquery.com/selector/

Bug: T69989
Change-Id: Ib1a908dc60ca23c354fb05484d9b00cf54a05ebe
resources/src/jquery.tipsy/jquery.tipsy.js