diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-17 11:09:39 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-17 11:09:39 +0100 |
commit | d5a8faa4d06d2664a7748ea570937751ef5271d5 (patch) | |
tree | d67a029d75753e20a069e8975ee0753f4ea65c71 /src/elements/Image.js | |
parent | 079f6f0ac37cb6d62501e8c397cc9850936f26e6 (diff) | |
download | svg.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.js | 7 |
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) |