From df99482c7090c69bed6835987b066a780bdf45f6 Mon Sep 17 00:00:00 2001 From: Alexander Shabunevich Date: Sat, 11 Feb 2023 16:04:57 +0300 Subject: [PATCH] Rename needUpdate method to needUpdateOptions --- src/directive.ts | 2 +- src/mask-input.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/directive.ts b/src/directive.ts index d977f80..42225a4 100644 --- a/src/directive.ts +++ b/src/directive.ts @@ -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 } diff --git a/src/mask-input.ts b/src/mask-input.ts index ca06d55..616c014 100644 --- a/src/mask-input.ts +++ b/src/mask-input.ts @@ -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)))