diff options
author | wout <wout@impinc.co.uk> | 2014-06-21 20:32:28 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-21 20:32:28 +0200 |
commit | 629a01b3bbf057eae7e0599433bbbcb28acd8587 (patch) | |
tree | c6ce43e4bb28e61885921d19ae99726ea93828c0 /src/rbox.js | |
parent | 19b6fd4338246d1fd9ca4806e57c7aebcec63826 (diff) | |
download | svg.js-629a01b3bbf057eae7e0599433bbbcb28acd8587.tar.gz svg.js-629a01b3bbf057eae7e0599433bbbcb28acd8587.zip |
Various reference fixes
Diffstat (limited to 'src/rbox.js')
-rwxr-xr-x | src/rbox.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rbox.js b/src/rbox.js index 598b3b4..fe6a9fa 100755 --- a/src/rbox.js +++ b/src/rbox.js @@ -31,7 +31,7 @@ SVG.RBox = function(element) { /* calculate cumulative zoom from svg documents */ e = element - while (e = e.parent()) { + while (e.parent && (e = e.parent())) { if (e.type == 'svg' && e.viewbox) { zoom *= e.viewbox().zoom this.x -= e.x() || 0 |