aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-29 00:25:20 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-29 00:25:20 +0100
commit57ca267205f6c371d3328cc64355f111dbaf72a2 (patch)
treeaeabcb4f0fc4b60c8452d3bf9474346ae69b1e63 /src/image.js
parent068f9b9ad3558109a372407346c1c3dd8d6f94a1 (diff)
downloadsvg.js-57ca267205f6c371d3328cc64355f111dbaf72a2.tar.gz
svg.js-57ca267205f6c371d3328cc64355f111dbaf72a2.zip
fixes the null check fix from last commit (fixes #417)
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 9c1db21..a0adf31 100644
--- a/src/image.js
+++ b/src/image.js
@@ -18,7 +18,7 @@ SVG.Image = SVG.invent({
img.onload = function() {
var p = self.parent(SVG.Pattern)
- if(!p) return
+ if(p === null) return
// ensure image size
if (self.width() == 0 && self.height() == 0)