Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support to 1.9.0 jQuery maintaining the live option of the plugin. #129

Closed
wants to merge 1 commit into from

3 participants

Josep Viciana Daniel O'Connor Jérôme Mahuet
Josep Viciana

No description provided.

Daniel O'Connor

See also #123, #126

Jérôme Mahuet

So basically, you just transformed the live into a bind. You can’t just replace live() by on().

See this: http://jquery.com/upgrade-guide/1.9/#live-removed

Josep Viciana emmgfx closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/javascripts/jquery.tipsy.js
2  src/javascripts/jquery.tipsy.js
View
@@ -174,7 +174,7 @@
if (!options.live) this.each(function() { get(this); });
if (options.trigger != 'manual') {
- var binder = options.live ? 'live' : 'bind',
+ var binder = options.live ? 'on' : 'bind',
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
this[binder](eventIn, enter)[binder](eventOut, leave);
Something went wrong with that request. Please try again.