From d5a8faa4d06d2664a7748ea570937751ef5271d5 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sat, 17 Nov 2018 11:09:39 +0100 Subject: changed image callback according to (#931) --- src/elements/Dom.js | 2 +- src/elements/Image.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src/elements') 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) -- cgit v1.2.3