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 | |
parent | 079f6f0ac37cb6d62501e8c397cc9850936f26e6 (diff) | |
download | svg.js-d5a8faa4d06d2664a7748ea570937751ef5271d5.tar.gz svg.js-d5a8faa4d06d2664a7748ea570937751ef5271d5.zip |
changed image callback according to (#931)
Diffstat (limited to 'src/elements')
-rw-r--r-- | src/elements/Dom.js | 2 | ||||
-rw-r--r-- | src/elements/Image.js | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js index 0808443..2fcedce 100644 --- a/src/elements/Dom.js +++ b/src/elements/Dom.js @@ -6,7 +6,7 @@ import { makeInstance, register } from '../utils/adopter.js' -import { find } from '../modules/core/selector'; +import { find } from '../modules/core/selector' import { globals } from '../utils/window.js' import { map } from '../utils/utils.js' import { ns } from '../modules/core/namespaces.js' 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) |