From 6faf61e6ef8f2037b09b792fed14ffa00e1409c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 20 Aug 2014 15:06:13 +0200 Subject: [PATCH] Fix incompatibility with jsdom 1.0.0-pre.1 Closes #513 --- src/dom/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/node.js b/src/dom/node.js index b367cfe9..000a7bbd 100644 --- a/src/dom/node.js +++ b/src/dom/node.js @@ -22,7 +22,7 @@ var jsdom = require('jsdom'), // Expose global browser variables and create a document and a window using // jsdom, e.g. for import/exportSVG() document = jsdom.jsdom(''), - window = document.createWindow(), + window = document.parentWindow, navigator = window.navigator, HTMLCanvasElement = Canvas, Image = Canvas.Image;