From bf7703f5915c6154937f3febf812aad6483bff45 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 11 Nov 2018 17:37:06 +0100 Subject: make window and document exchangeable in case they are not globals alreay, make sure that init functions are chaninable --- src/elements/Image.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/elements/Image.js') diff --git a/src/elements/Image.js b/src/elements/Image.js index c529439..6a01b8f 100644 --- a/src/elements/Image.js +++ b/src/elements/Image.js @@ -6,6 +6,9 @@ import { registerMethods } from '../utils/methods.js' import { xlink } from '../modules/core/namespaces.js' import Pattern from './Pattern.js' import Shape from './Shape.js' +import globals from '../utils/window.js' + +const { window } = globals export default class Image extends Shape { constructor (node) { -- cgit v1.2.3