Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
removeField(parser, value) {
const {id, field} = parser, index = this.sortList.indexOf(id);
delParser(parser, value);
$del(this.parsers, id);
if (index !== -1) {
this.sortList.splice(index, 1);
}
if (!this.fieldList[field]) {
$del(this.validate, field);
$del(this.formData, field);
$del(this.customData, field);
$del(this.fieldList, field);
$del(this.trueData, field);
}
}
removeField(field) {
if (this.handlers[field] === undefined) return;
const index = this.fieldList.indexOf(field);
delHandler(this.handlers[field]);
$del(this.handlers, field);
$del(this.validate, field);
if (index !== -1) {
this.fieldList.splice(index, 1);
}
this.vm._removeField(field);
}
removeField(parser, value) {
const {id, field} = parser, index = this.sortList.indexOf(id);
delParser(parser, value);
$del(this.parsers, id);
if (index !== -1) {
this.sortList.splice(index, 1);
}
if (!this.fieldList[field]) {
$del(this.validate, field);
$del(this.formData, field);
$del(this.customData, field);
$del(this.fieldList, field);
$del(this.trueData, field);
}
}
removeField(field) {
if (this.handlers[field] === undefined) return;
const index = this.fieldList.indexOf(field);
delHandler(this.handlers[field]);
$del(this.handlers, field);
$del(this.validate, field);
if (index !== -1) {
this.fieldList.splice(index, 1);
}
this.vm._removeField(field);
}
removeField(parser, value) {
const {id, field} = parser, index = this.sortList.indexOf(id);
delParser(parser, value);
$del(this.parsers, id);
if (index !== -1) {
this.sortList.splice(index, 1);
}
if (!this.fieldList[field]) {
$del(this.validate, field);
$del(this.formData, field);
$del(this.customData, field);
$del(this.fieldList, field);
$del(this.trueData, field);
}
}
removeField(parser, value) {
const {id, field} = parser, index = this.sortList.indexOf(id);
delParser(parser, value);
$del(this.parsers, id);
if (index !== -1) {
this.sortList.splice(index, 1);
}
if (!this.fieldList[field]) {
$del(this.validate, field);
$del(this.formData, field);
$del(this.customData, field);
$del(this.fieldList, field);
$del(this.trueData, field);
}
}