Merge pull request #644 from rbvea/master

Update to use jsdom v4 (document.defaultView vs. document.parentWindow).
This commit is contained in:
Jürg Lehni 2015-02-27 17:48:50 +01:00
commit 47883dfa3d
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@
},
"dependencies": {
"canvas": ">= 0.7.0",
"jsdom": ">= 0.6.0",
"jsdom": "3.1.2",
"request": "~2.27.0"
},
"devDependencies": {

View file

@ -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('<html><body></body></html>'),
window = document.parentWindow,
window = document.defaultView,
navigator = window.navigator,
HTMLCanvasElement = Canvas,
Image = Canvas.Image;