2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00

Rename needUpdate method to needUpdateOptions

This commit is contained in:
Alexander Shabunevich
2023-02-11 16:04:57 +03:00
parent aeb57a001d
commit df99482c70
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export const vMaska: MaskaDirective = (el, binding) => {
if (existed != null) {
checkValue(input)
if (!existed.needUpdate(input, opts)) {
if (!existed.needUpdateOptions(input, opts)) {
return
}
+1 -1
View File
@@ -43,7 +43,7 @@ export class MaskInput {
this.items.clear()
}
needUpdate (input: HTMLInputElement, opts: MaskInputOptions): boolean {
needUpdateOptions (input: HTMLInputElement, opts: MaskInputOptions): boolean {
const mask = this.items.get(input) as Mask
const maskNew = new Mask(parseInput(input, this.getMaskOpts(opts)))