Unverified Commit 724e455b authored by Christian Hartmann's avatar Christian Hartmann
Browse files

Remove unused code


Signed-off-by: default avatarChristian Hartmann <chris-hartmann@gmx.de>
parent bb71390c
......@@ -179,30 +179,6 @@ export default {
return this.values.indexOf(id) > -1
},
/**
* Is the provided answer required ?
* This is needed for checkboxes as html5
* doesn't allow to require at least ONE checked.
* So we require the one that are checked or all
* if none are checked yet.
* @param {number} id the answer id
* @returns {boolean}
*/
isRequired(id) {
// false, if question not required
if (!this.isRequired) {
return false
}
// true for simple select
if (!this.isMultiple) {
return true
}
// For checkboxes, only required if no other is checked
return this.areNoneChecked
},
/**
* Update the options
* @param {Array} options options to change
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment