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 ajax.once option not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Feb 15, 2011
1 parent 9a1b345 commit b34c4ca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 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: Sun Feb 13 15:23:04 2011 +0000
* Date: Sun Feb 13 15:53:13 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
6 changes: 3 additions & 3 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: Sun Feb 13 15:23:04 2011 +0000
* Date: Sun Feb 13 15:53:13 2011 +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 @@ -1719,13 +1719,13 @@ QTIP.defaults = {
// Make sure ajax options are enabled before proceeding
if(opts && opts.url) {
self.load();
tooltip.one('tooltipshow', self.once);
tooltip.one('tooltipshow', function() { self.once(opts.once); });
}
},

once: function(state)
{
tooltip[ (state ? '' : 'un') + 'bind' ]('tooltipshow'+namespace, self.load);
tooltip[ (state ? 'un' : '') + 'bind' ]('tooltipshow'+namespace, self.load);
},

load: function()
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/ajax.js
Expand Up @@ -29,13 +29,13 @@ function Ajax(api)
// Make sure ajax options are enabled before proceeding
if(opts && opts.url) {
self.load();
tooltip.one('tooltipshow', self.once);
tooltip.one('tooltipshow', function() { self.once(opts.once); });
}
},

once: function(state)
{
tooltip[ (state ? '' : 'un') + 'bind' ]('tooltipshow'+namespace, self.load);
tooltip[ (state ? 'un' : '') + 'bind' ]('tooltipshow'+namespace, self.load);
},

load: function()
Expand Down

0 comments on commit b34c4ca

Please sign in to comment.