Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
save: action(function() {
let realValue, dataType;
if (!this.isDate) {
realValue = parseText(this.txtValue);
} else {
realValue = this.dateValue.getTime();
dataType = 'date';
}
this.saveProperty(this.get('model.name'), realValue, dataType);
this.finishedEditing();
}),