Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Can now pass event object as second parameter to regular qTip call. T…
Browse files Browse the repository at this point in the history
…his allows you to correctly use mouse tracking

when binding a qTip within another event call e.g. live/bind functions
  • Loading branch information
Craga89 committed Sep 13, 2010
1 parent 102f6c4 commit 7ebcb82
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Sat Sep 11 09:06:11 2010 +0100
* Date: Mon Sep 13 18:52:03 2010 +0100
*/

.ui-tooltip-accessible{
Expand Down
8 changes: 4 additions & 4 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Sat Sep 11 09:06:11 2010 +0100
* Date: Mon Sep 13 18:52:03 2010 +0100
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -1208,12 +1208,12 @@ $.fn.qtip = function(options, notation, newValue)
opts = $.extend(TRUE, {}, $.fn.qtip.defaults, options);

// Bind the qTips
return $.fn.qtip.bind.call(targets, opts);
return $.fn.qtip.bind.call(targets, opts, event);
}
};

// $.fn.qtip Bind method
$.fn.qtip.bind = function(opts)
$.fn.qtip.bind = function(opts, event)
{
return $(this).each(function(i) {
var id, self, options, targets, events, namespace, content = opts.content.text;
Expand Down Expand Up @@ -1280,7 +1280,7 @@ $.fn.qtip.bind = function(opts)

// Prerendering is enabled, create tooltip now
if(options.show.ready || options.prerender || options.show.event === FALSE) {
hoverIntent();
hoverIntent(event);
}

// Prerendering is disabled, create tooltip on show event
Expand Down

0 comments on commit 7ebcb82

Please sign in to comment.