From 2db825dd6179d1859cdb0d5afd56fa2c1093a532 Mon Sep 17 00:00:00 2001 From: Russell Allen Date: Tue, 25 Nov 2014 10:40:08 +1100 Subject: [PATCH 1/2] Change .createWindow() to .parentWindow as required by recent versions of jsdom --- tools/textgenerator/node_modules/generate_morphhb.js | 2 +- tools/textgenerator/node_modules/generate_osis.js | 2 +- tools/textgenerator/node_modules/generate_usfm.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/textgenerator/node_modules/generate_morphhb.js b/tools/textgenerator/node_modules/generate_morphhb.js index 4d32596e2..7bb02dfd3 100644 --- a/tools/textgenerator/node_modules/generate_morphhb.js +++ b/tools/textgenerator/node_modules/generate_morphhb.js @@ -1,7 +1,7 @@ var fs = require('fs'), path = require('path'), jsdom = require("jsdom"), - $ = require('jquery')(jsdom.jsdom().createWindow()), + $ = require('jquery')(jsdom.jsdom().parentWindow), bibleData = require('bible_data'), bibleFormatter = require('bible_formatter'), verseIndexer = require('verse_indexer'); diff --git a/tools/textgenerator/node_modules/generate_osis.js b/tools/textgenerator/node_modules/generate_osis.js index 0dd8a3103..207d18128 100644 --- a/tools/textgenerator/node_modules/generate_osis.js +++ b/tools/textgenerator/node_modules/generate_osis.js @@ -4,7 +4,7 @@ var fs = require('fs'), bibleFormatter = require('bible_formatter'), verseIndexer = require('verse_indexer'), jsdom = require("jsdom"), - $ = require('jquery')(jsdom.jsdom().createWindow()); + $ = require('jquery')(jsdom.jsdom().parentWindow); unparsedTags = []; diff --git a/tools/textgenerator/node_modules/generate_usfm.js b/tools/textgenerator/node_modules/generate_usfm.js index 018a9e669..0a013059e 100644 --- a/tools/textgenerator/node_modules/generate_usfm.js +++ b/tools/textgenerator/node_modules/generate_usfm.js @@ -6,7 +6,7 @@ var fs = require('fs'), readline = require('readline'); stream = require('stream'), jsdom = require("jsdom"), -$ = require('jquery')(jsdom.jsdom().createWindow()), +$ = require('jquery')(jsdom.jsdom().parentWindow), verseIndexer = require('verse_indexer'); function generate(inputBasePath, info, createIndex, startProgress, updateProgress) { From 25f9c25e3b6bf00b30f55106f965d3fbd7833657 Mon Sep 17 00:00:00 2001 From: Open English Bible Date: Tue, 1 Mar 2016 13:14:24 +1100 Subject: [PATCH 2/2] Update generate-usfm.js for latest jdsom --- tools/textgenerator/node_modules/generate_usfm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/textgenerator/node_modules/generate_usfm.js b/tools/textgenerator/node_modules/generate_usfm.js index 0a013059e..18fae418d 100644 --- a/tools/textgenerator/node_modules/generate_usfm.js +++ b/tools/textgenerator/node_modules/generate_usfm.js @@ -6,7 +6,7 @@ var fs = require('fs'), readline = require('readline'); stream = require('stream'), jsdom = require("jsdom"), -$ = require('jquery')(jsdom.jsdom().parentWindow), +$ = require('jquery')(jsdom.jsdom().defaultView), verseIndexer = require('verse_indexer'); function generate(inputBasePath, info, createIndex, startProgress, updateProgress) {