From 7125c6417479216808469e5c4016ec8b1dc515c6 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 28 Jun 2015 21:24:20 +0200 Subject: Fixed few bugs with doc() and problems with textNodes (#357) --- src/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/image.js') 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) -- cgit v1.2.3