diff --git a/src/scripts/h5p-dictation-sentence.js b/src/scripts/h5p-dictation-sentence.js index 96702fd..1c5d848 100644 --- a/src/scripts/h5p-dictation-sentence.js +++ b/src/scripts/h5p-dictation-sentence.js @@ -419,7 +419,7 @@ class Sentence { * Add spaces between text and punctuation. * @param {string} text Text to add spaces to. * @param {object} [options] Options. - * @param {boolean} [options.autosplit=true] If true, automatically split respective symbols. + * @param {boolean} [options.autosplit] If true, automatically split respective symbols. * @returns {string} [options.wordSeparator=' '] Text with spaces and symbols. */ static addSpaces(text, options = {}) { diff --git a/src/scripts/h5p-dictation-solution.js b/src/scripts/h5p-dictation-solution.js index 52f97b1..022a800 100644 --- a/src/scripts/h5p-dictation-solution.js +++ b/src/scripts/h5p-dictation-solution.js @@ -4,7 +4,7 @@ import Util from '@services/util'; class Solution { /** * @class - * @param {object} [params={}] Parameters. + * @param {object} [params] Parameters. */ constructor(params = {}) { this.params = params; @@ -100,7 +100,7 @@ class Solution { * @param {string} word.type Status about missing, typo, ... * @param {string} word.solution Correct spelling of the word. * @param {string} word.answer User input for this word. - * @param {boolean} [trailingGap=true] True if wrapper should have trailing gap. + * @param {boolean} [trailingGap] True if wrapper should have trailing gap. * @returns {HTMLElement} DOM for solution words. */ createSolutionWordDOM(index, word, trailingGap = true) { @@ -237,7 +237,7 @@ class Solution { /** * Replace symbols with a11y readably words. - * @param {string} [text=''] Text to make readable. + * @param {string} [text] Text to make readable. * @returns {string} Readable text. */ makeReadable(text) { diff --git a/src/scripts/h5p-dictation.js b/src/scripts/h5p-dictation.js index 87254fe..9d43866 100644 --- a/src/scripts/h5p-dictation.js +++ b/src/scripts/h5p-dictation.js @@ -668,7 +668,7 @@ class Dictation extends H5P.Question { * This may not be completely true, because we can't sensibly compile all * possible answers for a sentence if we accept small mistakes. * @param {object[]} gapsVariations Sentences gaps. - * @param {boolean} [complete=false] If true, will build complete CRP. + * @param {boolean} [complete] If true, will build complete CRP. * @returns {object[]} Correct responses pattern. */ this.buildxAPICRP = (gapsVariations, complete = false) => { diff --git a/src/scripts/services/util.js b/src/scripts/services/util.js index 973d249..b290eb9 100644 --- a/src/scripts/services/util.js +++ b/src/scripts/services/util.js @@ -94,7 +94,7 @@ class Util { * ['a', 'b', 'c'] and ['d', 'e'] become ['a d', 'a e', 'b d', 'b e', 'c d', 'c e'] * @param {object[]} words1 First set of strings. * @param {object[]} words2 Second set of strings. - * @param {string} [delimiter=' '] Delimiter between each string. + * @param {string} [delimiter] Delimiter between each string. * @returns {object[]} Result. */ static buildCombinations(words1, words2, delimiter = ' ') {