* Return the given form element, or defaults to `this.parentForm` if no argument is passed. * * @param {HTMLFormElement|null} [formElement=null] * @returns {HTMLFormElement} * @private
(formElement = null)
| 1422 | * @private |
| 1423 | */ |
| 1424 | _getFormElement(formElement = null) { |
| 1425 | let formElementToUse; |
| 1426 | if (!AutoNumericHelper.isNull(formElement)) { |
| 1427 | formElementToUse = formElement; |
| 1428 | } else { |
| 1429 | formElementToUse = this.parentForm; |
| 1430 | } |
| 1431 | |
| 1432 | return formElementToUse; |
| 1433 | } |
| 1434 | |
| 1435 | /** |
| 1436 | * Generate a form handler unique name and store it in the global form handler list. |
no test coverage detected