diff options
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 |