Permalink
Browse files

Merge pull request #29 from vorotech/fix_jsdom

fixed usage of jsdom module in apricot, createWindow was removed from ne...
  • Loading branch information...
2 parents d1885d7 + c38678a commit 34b11f33534b13b7e177fc0ee62761e81426e2ab @silentrob committed Sep 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/apricot.js
View
@@ -13,7 +13,7 @@ function Apricot(content,live) {
this.raw = content;
this.document = dom("<html><head></head><body></body></html>");
- this.window = this.document.createWindow();
+ this.window = this.document.parentWindow;
// TODO, content should be applied to the whole document, not the body.
this.document.body.innerHTML = content;
this.matches = [];

0 comments on commit 34b11f3

Please sign in to comment.