diff options
Diffstat (limited to 'src/image.js')
-rw-r--r-- | src/image.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.js b/src/image.js index 57bb387..d6101f3 100644 --- a/src/image.js +++ b/src/image.js @@ -12,7 +12,7 @@ SVG.Image = SVG.invent({ if (!url) return this var self = this - , img = document.createElement('img') + , img = new window.Image() // preload image img.onload = function() { |