diff options
author | wout <wout@impinc.co.uk> | 2012-12-20 21:31:17 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-20 21:31:17 +0100 |
commit | 675e347a10372a10ecdfd4fa6624c062f1ee7102 (patch) | |
tree | d36b605512862178deb07a1d58a11dc4e794921b /src/image.js | |
parent | 7b5c91ba593fc673ec6d4a8d7dac4b26b1fac52f (diff) | |
download | svg.js-675e347a10372a10ecdfd4fa6624c062f1ee7102.tar.gz svg.js-675e347a10372a10ecdfd4fa6624c062f1ee7102.zip |
Added font element
Diffstat (limited to 'src/image.js')
-rw-r--r-- | src/image.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/image.js b/src/image.js index 107fef4..a1d21c0 100644 --- a/src/image.js +++ b/src/image.js @@ -4,18 +4,14 @@ SVG.Image = function Image() { }; // inherit from SVG.Element -SVG.Image.prototype = new SVG.Element(); - -// include the container object -SVG.extend(SVG.Image, SVG.Container); +SVG.Image.prototype = new SVG.Shape(); // Add image-specific functions SVG.extend(SVG.Image, { // (re)load image load: function(u) { - this.attr('href', u, SVG.xlink); - return this; + return this.attr('href', u, SVG.xlink); } });
\ No newline at end of file |