Skip to content

Commit

Permalink
Merge pull request #29 from vorotech/fix_jsdom
Browse files Browse the repository at this point in the history
fixed usage of jsdom module in apricot, createWindow was removed from ne...
  • Loading branch information
silentrob committed Sep 17, 2014
2 parents d1885d7 + c38678a commit 34b11f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apricot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 34b11f3

Please sign in to comment.