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

Commit

Permalink
Fixed problem with commands not beging passed though the .qtip() method.
Browse files Browse the repository at this point in the history
Also moved position.adjust.effect to position.effect instead, just for consistencies sake
  • Loading branch information
Craga89 committed Sep 18, 2010
1 parent 3fbff7f commit c61be3f
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 18 15:35:10 2010 +0100
* Date: Sat Sep 18 17:12:35 2010 +0100
*/

.ui-tooltip-accessible{
Expand Down
14 changes: 7 additions & 7 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 18 15:35:10 2010 +0100
* Date: Sat Sep 18 17:12:35 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 @@ -798,7 +798,7 @@ function QTip(target, options, id)

// Use custom function if provided
if($.isFunction(opts.effect)) {
opts.effect.call(tooltip);
opts.effect.call(tooltip, self.hash());
tooltip.queue(function(){ after.call(this); $(this).dequeue(); });
}

Expand Down Expand Up @@ -1023,8 +1023,8 @@ function QTip(target, options, id)
delete position.adjust;

// Use custom function if provided
if(tooltip.is(':visible') && $.isFunction(posOptions.adjust.effect)) {
posOptions.adjust.effect.call(tooltip, position);
if(tooltip.is(':visible') && $.isFunction(posOptions.effect)) {
posOptions.effect.call(tooltip, position);
tooltip.queue(function() {
// Reset attributes to avoid cross-browser rendering bugs
$(this).css({ opacity: '', height: '' });
Expand Down Expand Up @@ -1163,7 +1163,7 @@ $.fn.qtip = function(options, notation, newValue)
targets;

// Check for API request
if((!args.length && $(this).data('qtip')) || command === 'api') {
if((!arguments.length && $(this).data('qtip')) || command === 'api') {
opts = $(this).eq(0).data('qtip');
return opts ? opts.hash() : undefined;
}
Expand Down Expand Up @@ -1386,9 +1386,9 @@ $.fn.qtip.defaults = {
mouse: TRUE,
screen: FALSE,
resize: TRUE,
effect: TRUE,
offset: FALSE
}
},
effect: TRUE
},
show: {
target: FALSE,
Expand Down

0 comments on commit c61be3f

Please sign in to comment.