Rename InValid to Invalid
parent
7eae560f55
commit
4ee2a0b735
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue