diff options
Diffstat (limited to 'ext/js/data')
-rw-r--r-- | ext/js/data/anki-note-data-creator.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/js/data/anki-note-data-creator.js b/ext/js/data/anki-note-data-creator.js index f4d6ab49..3046a92e 100644 --- a/ext/js/data/anki-note-data-creator.js +++ b/ext/js/data/anki-note-data-creator.js @@ -53,7 +53,7 @@ class AnkiNoteDataCreator { const context2 = this.createCachedValue(this._getPublicContext.bind(this, context)); const pitches = this.createCachedValue(this._getPitches.bind(this, dictionaryEntry)); const pitchCount = this.createCachedValue(this._getPitchCount.bind(this, pitches)); - return { + const result = { marker, get definition() { return self.getCachedValue(definition); }, glossaryLayoutMode, @@ -70,6 +70,13 @@ class AnkiNoteDataCreator { get pitchCount() { return self.getCachedValue(pitchCount); }, get context() { return self.getCachedValue(context2); } }; + Object.defineProperty(result, 'dictionaryEntry', { + configurable: false, + enumerable: false, + writable: false, + value: dictionaryEntry + }); + return result; } /** |