diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-04-07 21:17:13 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-04-07 21:17:13 -0700 |
commit | c4b1a4a5b4811d7aaa70b3b83f740c9e3d2b86be (patch) | |
tree | 0bb0caf5b506ea90555b79ae2ccda54da8756506 /ext/mixed/js/display.js | |
parent | bbe4afecf6a56f4bdaaafe083a3bf67191fd9cde (diff) |
wip
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index e77ca7da..973b7749 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -74,7 +74,7 @@ class Display { if (context) { for (const definition of definitions) { - definition.cloze = clozeBuild(context.cloze); + definition.cloze = clozeBuild(context.sentence, definition.source); definition.url = context.url; } } @@ -108,7 +108,7 @@ class Display { if (context) { for (const definition of definitions) { - definition.cloze = clozeBuild(context.cloze); + definition.cloze = clozeBuild(context.sentence, definition.source); definition.url = context.url; } } @@ -181,7 +181,7 @@ class Display { }; if (this.context) { - context.cloze = this.context.cloze; + context.sentence = this.context.sentence; context.url = this.context.url; } @@ -308,7 +308,7 @@ class Display { if (this.context && this.context.source) { const context = { url: this.context.source.url, - cloze: this.context.source.cloze, + sentence: this.context.source.sentence, index: this.context.source.index }; |