summaryrefslogtreecommitdiffstats
path: root/src/image.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.js')
-rw-r--r--src/image.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.js b/src/image.js
index ed44752..ed803d6 100644
--- a/src/image.js
+++ b/src/image.js
@@ -16,7 +16,7 @@ SVG.Image = SVG.invent({
// preload image
img.onload = function() {
- var p = self.doc(SVG.Pattern)
+ var p = self.parent(SVG.Pattern)
// ensure image size
if (self.width() == 0 && self.height() == 0)