aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.js')
-rw-r--r--src/image.js14
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