Rename InValid to Invalid

pull/35/head
Paal Joergensen 2018-08-21 09:43:43 +02:00
parent 7eae560f55
commit 4ee2a0b735
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
};