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

Commit

Permalink
Events are now bound correctly before handlers are trigged on first r…
Browse files Browse the repository at this point in the history
…ender
  • Loading branch information
Craga89 committed Nov 3, 2010
1 parent e1c7d8f commit 9e72f04
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 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: Wed Nov 3 01:53:58 2010 +0000
* Date: Wed Nov 3 01:57:34 2010 +0000
*/

.ui-tooltip-accessible{
Expand Down
16 changes: 8 additions & 8 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: Wed Nov 3 01:53:58 2010 +0000
* Date: Wed Nov 3 01:57:34 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 @@ -641,18 +641,18 @@ function QTip(target, options, id)

// Set rendered status to TRUE
self.rendered = TRUE;

// Update tooltip position and show tooltip if needed
if(options.show.ready || show) {
elements.tooltip.hide();
self.show(self.cache.event);
}


// Assign events
assignEvents(1, 1, 1, 1);
$.each(options.events, function(name, callback) {
elements.tooltip.bind('tooltip'+name, callback);
});

// Update tooltip position and show tooltip if needed
if(options.show.ready || show) {
elements.tooltip.hide();
self.show(self.cache.event);
}

// Remove accessible class
elements.tooltip.removeClass('ui-tooltip-accessible');
Expand Down
8 changes: 4 additions & 4 deletions dist/jquery.qtip.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.qtip.pack.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/core.js
Expand Up @@ -616,18 +616,18 @@ function QTip(target, options, id)

// Set rendered status to TRUE
self.rendered = TRUE;

// Update tooltip position and show tooltip if needed
if(options.show.ready || show) {
elements.tooltip.hide();
self.show(self.cache.event);
}


// Assign events
assignEvents(1, 1, 1, 1);
$.each(options.events, function(name, callback) {
elements.tooltip.bind('tooltip'+name, callback);
});

// Update tooltip position and show tooltip if needed
if(options.show.ready || show) {
elements.tooltip.hide();
self.show(self.cache.event);
}

// Remove accessible class
elements.tooltip.removeClass('ui-tooltip-accessible');
Expand Down

0 comments on commit 9e72f04

Please sign in to comment.