diff options
author | wout <wout@impinc.co.uk> | 2013-02-20 19:10:03 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-02-20 19:10:03 +0100 |
commit | ae878fd63077d4c95f2de9053a6f0951b55239eb (patch) | |
tree | 5dba7bd42a8b5702faeb6cc12d2b4d4099841e51 /src/image.js | |
parent | 5020240e4029a61a9620f21d7be4d9764e7723d1 (diff) | |
download | svg.js-ae878fd63077d4c95f2de9053a6f0951b55239eb.tar.gz svg.js-ae878fd63077d4c95f2de9053a6f0951b55239eb.zip |
Created separate classes for SVG.ViewBox anSVG.BBox0.6
Diffstat (limited to 'src/image.js')
-rw-r--r-- | src/image.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/image.js b/src/image.js index b9340e4..bc60c0e 100644 --- a/src/image.js +++ b/src/image.js @@ -1,16 +1,16 @@ -SVG.Image = function Image() { - this.constructor.call(this, SVG.create('image')); -}; +SVG.Image = function() { + this.constructor.call(this, SVG.create('image')) +} // Inherit from SVG.Element -SVG.Image.prototype = new SVG.Shape(); +SVG.Image.prototype = new SVG.Shape() SVG.extend(SVG.Image, { /* (re)load image */ load: function(url) { - this.src = url; - return (url ? this.attr('xlink:href', url, SVG.xlink) : this); + this.src = url + return (url ? this.attr('xlink:href', url, SVG.xlink) : this) } -});
\ No newline at end of file +})
\ No newline at end of file |