mirror of
https://github.com/tenrok/maska.git
synced 2026-06-20 20:00:34 +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) {
|
if (existed != null) {
|
||||||
checkValue(input)
|
checkValue(input)
|
||||||
|
|
||||||
if (!existed.needUpdate(input, opts)) {
|
if (!existed.needUpdateOptions(input, opts)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@ export class MaskInput {
|
|||||||
this.items.clear()
|
this.items.clear()
|
||||||
}
|
}
|
||||||
|
|
||||||
needUpdate (input: HTMLInputElement, opts: MaskInputOptions): boolean {
|
needUpdateOptions (input: HTMLInputElement, opts: MaskInputOptions): boolean {
|
||||||
const mask = this.items.get(input) as Mask
|
const mask = this.items.get(input) as Mask
|
||||||
const maskNew = new Mask(parseInput(input, this.getMaskOpts(opts)))
|
const maskNew = new Mask(parseInput(input, this.getMaskOpts(opts)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user