aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/core/selector.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 09:35:37 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 09:35:37 +0100
commitd3f8d83551799db061a558537bc89dcbfd522c21 (patch)
treef6456de7ac3599c35b217c9f769cb1adca03997f /src/modules/core/selector.js
parentbf7703f5915c6154937f3febf812aad6483bff45 (diff)
downloadsvg.js-d3f8d83551799db061a558537bc89dcbfd522c21.tar.gz
svg.js-d3f8d83551799db061a558537bc89dcbfd522c21.zip
evaluate window and document on access and not on import
Diffstat (limited to 'src/modules/core/selector.js')
-rw-r--r--src/modules/core/selector.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/core/selector.js b/src/modules/core/selector.js
index 52a7ad1..f2a7c58 100644
--- a/src/modules/core/selector.js
+++ b/src/modules/core/selector.js
@@ -1,12 +1,10 @@
import { adopt } from '../../utils/adopter.js'
import { map } from '../../utils/utils.js'
import { registerMethods } from '../../utils/methods.js'
-import globals from '../../utils/window.js'
-
-const { document } = globals
+import { globals } from '../../utils/window.js'
export default function baseFind (query, parent) {
- return map((parent || document).querySelectorAll(query), function (node) {
+ return map((parent || globals.document).querySelectorAll(query), function (node) {
return adopt(node)
})
}