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

Commit

Permalink
declaring show.event as false no longer causes tooltip to render on d…
Browse files Browse the repository at this point in the history
…ocument ready
  • Loading branch information
Craga89 committed Nov 23, 2010
1 parent 7146245 commit e3a6094
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 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: Tue Nov 23 01:40:57 2010 +0000
* Date: Tue Nov 23 02:10:21 2010 +0000
*/

.ui-tooltip-accessible{
Expand Down
10 changes: 5 additions & 5 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: Tue Nov 23 01:40:57 2010 +0000
* Date: Tue Nov 23 02:10:21 2010 +0000
*/

"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 @@ -1331,7 +1331,7 @@ $.fn.qtip = function(options, notation, newValue)
// Render tooltip if not already rendered when tooltip is to be shown
if(!api.rendered && (command === 'show' || command === 'toggle')) {
if(event && event.timeStamp) { api.cache.event = event; }
api.render();
api.render(1);
}

// Check for disable/enable commands
Expand Down Expand Up @@ -1437,16 +1437,16 @@ $.fn.qtip.bind = function(opts, event)
targets.show.bind(events.show, hoverIntent);

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

// Override some of the core jQuery methods for library-specific purposes
$.each({
/* Allow other plugins to successfully retrieve the title of an element with a qTip applied */
attr: function(attr) {
var api = $(this).data('qtip');
return (arguments.length === 1 && attr === 'title' && api && api.rendered === TRUE) ? $(this).data('oldtitle') : NULL;
var api = this.data('qtip');
return (arguments.length === 1 && attr === 'title' && api && api.rendered === TRUE) ? this.data('oldtitle') : NULL;
},

/*
Expand Down
28 changes: 14 additions & 14 deletions dist/jquery.qtip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3a6094

Please sign in to comment.