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:
+1
-1
@@ -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
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user