aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Image.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-17 11:09:39 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-17 11:09:39 +0100
commitd5a8faa4d06d2664a7748ea570937751ef5271d5 (patch)
treed67a029d75753e20a069e8975ee0753f4ea65c71 /src/elements/Image.js
parent079f6f0ac37cb6d62501e8c397cc9850936f26e6 (diff)
downloadsvg.js-d5a8faa4d06d2664a7748ea570937751ef5271d5.tar.gz
svg.js-d5a8faa4d06d2664a7748ea570937751ef5271d5.zip
changed image callback according to (#931)
Diffstat (limited to 'src/elements/Image.js')
-rw-r--r--src/elements/Image.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/elements/Image.js b/src/elements/Image.js
index 7f00980..bf2de0e 100644
--- a/src/elements/Image.js
+++ b/src/elements/Image.js
@@ -35,12 +35,7 @@ export default class Image extends Shape {
}
if (typeof callback === 'function') {
- callback.call(this, {
- width: img.width,
- height: img.height,
- ratio: img.width / img.height,
- url: url
- })
+ callback.call(this, e)
}
}, this)