diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-12 09:35:37 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-12 09:35:37 +0100 |
commit | d3f8d83551799db061a558537bc89dcbfd522c21 (patch) | |
tree | f6456de7ac3599c35b217c9f769cb1adca03997f /src/modules/core/textable.js | |
parent | bf7703f5915c6154937f3febf812aad6483bff45 (diff) | |
download | svg.js-d3f8d83551799db061a558537bc89dcbfd522c21.tar.gz svg.js-d3f8d83551799db061a558537bc89dcbfd522c21.zip |
evaluate window and document on access and not on import
Diffstat (limited to 'src/modules/core/textable.js')
-rw-r--r-- | src/modules/core/textable.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/core/textable.js b/src/modules/core/textable.js index cf452c6..55df7c6 100644 --- a/src/modules/core/textable.js +++ b/src/modules/core/textable.js @@ -1,6 +1,4 @@ -import globals from '../../utils/window.js' - -const { document } = globals +import { globals } from '../../utils/window.js' // Create plain text node export function plain (text) { @@ -10,7 +8,7 @@ export function plain (text) { } // create text node - this.node.appendChild(document.createTextNode(text)) + this.node.appendChild(globals.document.createTextNode(text)) return this } |