Skip to content

Commit 6ed7dc2

Browse files
committed
Replace Globals
1 parent 30c18f5 commit 6ed7dc2

File tree

2 files changed

+1
-39
lines changed

2 files changed

+1
-39
lines changed

src/scripts/h5p-discrete-option-multi-choice.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Util from '@services/util.js';
22
import Dictionary from '@services/dictionary.js';
3-
import Globals from '@services/globals.js';
43
import QuestionTypeContract from '@mixins/question-type-contract.js';
54
import XAPI from '@mixins/xapi.js';
65
import Main from '@components/main.js';
@@ -77,7 +76,7 @@ export default class DiscreteOptionMultiChoice extends H5P.Question {
7776
this.dictionary.fill({ l10n: this.params.l10n, a11y: this.params.a11y });
7877

7978
// Set globals
80-
this.globals = new Globals();
79+
this.globals = new Map();
8180
this.globals.set('params', this.params);
8281
this.globals.set('resize', () => {
8382
this.trigger('resize');

src/scripts/services/globals.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)