aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elements/Dom.js2
-rw-r--r--src/elements/Image.js7
-rw-r--r--src/modules/core/selector.js1
3 files changed, 2 insertions, 8 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)
diff --git a/src/modules/core/selector.js b/src/modules/core/selector.js
index 6fcf05e..24841c5 100644
--- a/src/modules/core/selector.js
+++ b/src/modules/core/selector.js
@@ -1,7 +1,6 @@
import { adopt } from '../../utils/adopter.js'
import { globals } from '../../utils/window.js'
import { map } from '../../utils/utils.js'
-import { registerMethods } from '../../utils/methods.js'
import List from '../../types/List.js'
export default function baseFind (query, parent) {