mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Merge pull request #644 from rbvea/master
Update to use jsdom v4 (document.defaultView vs. document.parentWindow).
This commit is contained in:
commit
47883dfa3d
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"canvas": ">= 0.7.0",
|
||||
"jsdom": ">= 0.6.0",
|
||||
"jsdom": "3.1.2",
|
||||
"request": "~2.27.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue