From 4ee2a0b73575f68bb41019b21fdcab12cbd19066 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 21 Aug 2018 09:43:43 +0200 Subject: [PATCH] Rename InValid to Invalid --- presave.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } };