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

Commit

Permalink
SVG fix. Thanks urkle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Feb 1, 2011
1 parent c5d0992 commit 39aeb6b
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: Mon Jan 31 18:01:29 2011 +0000
* Date: Tue Feb 1 12:28:32 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
4 changes: 2 additions & 2 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: Mon Jan 31 18:01:29 2011 +0000
* Date: Tue Feb 1 12:28:32 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 @@ -2439,7 +2439,7 @@ $.fn.qtip.plugins.svg = function(svg, corner)
},
box, mtx, root, point, tPoint;

if (elem.getBBox) {
if (elem.getBBox && elem.parentNode) {
box = elem.getBBox();
mtx = elem.getScreenCTM();
root = elem.farthestViewportElement || elem;
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.

2 changes: 1 addition & 1 deletion src/svg.js
Expand Up @@ -8,7 +8,7 @@ $.fn.qtip.plugins.svg = function(svg, corner)
},
box, mtx, root, point, tPoint;

if (elem.getBBox) {
if (elem.getBBox && elem.parentNode) {
box = elem.getBBox();
mtx = elem.getScreenCTM();
root = elem.farthestViewportElement || elem;
Expand Down

0 comments on commit 39aeb6b

Please sign in to comment.