File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var Context = function (template) {
9
9
// but we're not actually expecting to render an app in here... it just gives
10
10
// us an anchor document so we can do things like call document.createElement
11
11
// when using jqLite/jQuery.
12
- var document = jsdom . jsdom (
12
+ var document = new jsdom . JSDOM (
13
13
template ,
14
14
{
15
15
features : {
@@ -22,7 +22,7 @@ var Context = function (template) {
22
22
}
23
23
}
24
24
) ;
25
- var window = document . defaultView ;
25
+ var window = document . window ;
26
26
vm . createContext ( window ) ;
27
27
var rawContext = window ;
28
28
var runner = function ( code , filename ) {
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.23" ,
4
4
"description" : " Use AngularJS in Node applications" ,
5
5
"author" :
" Martin Atkins <[email protected] >" ,
6
- "keywords" : [" angularjs" ],
6
+ "keywords" : [
7
+ " angularjs"
8
+ ],
7
9
"repository" : {
8
10
"type" : " git" ,
9
11
"url" : " git://github.com/apparentlymart/node-angularcontext.git"
20
22
}
21
23
],
22
24
"dependencies" : {
23
- "jsdom" : " ~9.5 .0"
25
+ "jsdom" : " ~11.11 .0"
24
26
},
25
27
"devDependencies" : {
26
28
"nodeunit" : " *" ,
You can’t perform that action at this time.
0 commit comments