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

Commit

Permalink
Fixed problem from previous pushes that caused library to stop workin…
Browse files Browse the repository at this point in the history
…g if show.modal wasn't declared
  • Loading branch information
Craga89 committed Sep 14, 2010
1 parent f5e9b94 commit d87e302
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 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 Sep 14 18:03:44 2010 +0100
* Date: Tue Sep 14 18:26:27 2010 +0100
*/

.ui-tooltip-accessible{
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: Tue Sep 14 18:03:44 2010 +0100
* Date: Tue Sep 14 18:26:27 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 @@ -951,7 +951,7 @@ function QTip(target, options, id)
}

// Check if window or document is the target
if(target[0] === document.body || target[0] === window) {
if(target[0] === document || target[0] === window) {
targetWidth = target.width();
targetHeight = target.height();

Expand Down Expand Up @@ -2264,7 +2264,7 @@ $.fn.qtip.plugins.modal = function(qTip)
return api;
}
// No API was found, create new instance
else if(opts.on === TRUE) {
else if(opts && opts.on === TRUE) {
qTip.plugins.modal = new Modal(qTip, opts);
return qTip.plugins.modal;
}
Expand Down
6 changes: 3 additions & 3 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.

2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -926,7 +926,7 @@ function QTip(target, options, id)
}

// Check if window or document is the target
if(target[0] === document.body || target[0] === window) {
if(target[0] === document || target[0] === window) {
targetWidth = target.width();
targetHeight = target.height();

Expand Down
2 changes: 1 addition & 1 deletion src/modal.js
Expand Up @@ -133,7 +133,7 @@ $.fn.qtip.plugins.modal = function(qTip)
return api;
}
// No API was found, create new instance
else if(opts.on === TRUE) {
else if(opts && opts.on === TRUE) {
qTip.plugins.modal = new Modal(qTip, opts);
return qTip.plugins.modal;
}
Expand Down

0 comments on commit d87e302

Please sign in to comment.