diff --git a/presave.js b/presave.js index 6727b1e..4c629b5 100644 --- a/presave.js +++ b/presave.js @@ -10,7 +10,7 @@ var H5PPresave = H5PPresave || {}; H5PPresave['H5P.QuestionSet'] = function (content, finished) { var presave = H5PEditor.Presave; - if (isContentInValid()) { + if (isContentInvalid()) { throw new presave.exceptions.InvalidContentSemanticsException('Invalid Question Set Error') } @@ -38,7 +38,7 @@ H5PPresave['H5P.QuestionSet'] = function (content, finished) { * Check if required parameters is present * @return {boolean} */ - function isContentInValid() { + function isContentInvalid() { return !presave.checkNestedRequirements(content, 'content.questions') || !Array.isArray(content.questions); } };