summaryrefslogtreecommitdiffstats
path: root/src/rbox.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-21 20:32:28 +0200
committerwout <wout@impinc.co.uk>2014-06-21 20:32:28 +0200
commit629a01b3bbf057eae7e0599433bbbcb28acd8587 (patch)
treec6ce43e4bb28e61885921d19ae99726ea93828c0 /src/rbox.js
parent19b6fd4338246d1fd9ca4806e57c7aebcec63826 (diff)
downloadsvg.js-629a01b3bbf057eae7e0599433bbbcb28acd8587.tar.gz
svg.js-629a01b3bbf057eae7e0599433bbbcb28acd8587.zip
Various reference fixes
Diffstat (limited to 'src/rbox.js')
-rwxr-xr-xsrc/rbox.js2
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