diff options
Diffstat (limited to 'src/rbox.js')
-rwxr-xr-x | src/rbox.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rbox.js b/src/rbox.js index 54e08cb..598b3b4 100755 --- a/src/rbox.js +++ b/src/rbox.js @@ -10,7 +10,7 @@ SVG.RBox = function(element) { this.height = 0 if (element) { - e = element.doc().parent + e = element.doc().parent() zoom = element.doc().viewbox().zoom /* actual, native bounding box */ @@ -31,7 +31,7 @@ SVG.RBox = function(element) { /* calculate cumulative zoom from svg documents */ e = element - while (e = e.parent) { + while (e = e.parent()) { if (e.type == 'svg' && e.viewbox) { zoom *= e.viewbox().zoom this.x -= e.x() || 0 |