mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -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": {
|
"dependencies": {
|
||||||
"canvas": ">= 0.7.0",
|
"canvas": ">= 0.7.0",
|
||||||
"jsdom": ">= 0.6.0",
|
"jsdom": "3.1.2",
|
||||||
"request": "~2.27.0"
|
"request": "~2.27.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -22,7 +22,7 @@ var jsdom = require('jsdom'),
|
||||||
// Expose global browser variables and create a document and a window using
|
// Expose global browser variables and create a document and a window using
|
||||||
// jsdom, e.g. for import/exportSVG()
|
// jsdom, e.g. for import/exportSVG()
|
||||||
document = jsdom.jsdom('<html><body></body></html>'),
|
document = jsdom.jsdom('<html><body></body></html>'),
|
||||||
window = document.parentWindow,
|
window = document.defaultView,
|
||||||
navigator = window.navigator,
|
navigator = window.navigator,
|
||||||
HTMLCanvasElement = Canvas,
|
HTMLCanvasElement = Canvas,
|
||||||
Image = Canvas.Image;
|
Image = Canvas.Image;
|
||||||
|
|
Loading…
Reference in a new issue