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

Commit

Permalink
Fixed duplicate AJAx request when using ajax.once=false;
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jan 6, 2011
1 parent e47acf8 commit b27df18
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 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: Thu Jan 6 21:41:21 2011 +0000
* Date: Thu Jan 6 21:43:23 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
7 changes: 3 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: Thu Jan 6 21:41:21 2011 +0000
* Date: Thu Jan 6 21:43:23 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 @@ -1603,14 +1603,13 @@ $.fn.qtip.defaults = {
{
// Make sure ajax options are enabled before proceeding
if(opts && opts.url) {
self.load();
self.once();
self.load[ opts.once ? 'once' : 'load' ]();
}
},

once: function()
{
if(opts.once) {
if(opts.once) {
self.destroy();
}
else {
Expand Down
22 changes: 11 additions & 11 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 b27df18

Please sign in to comment.