2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-20 20:00:34 +03:00

style: code format

This commit is contained in:
Alexander Shabunevich
2024-04-06 10:16:06 +03:00
parent ce1243abcd
commit 81a748e891
2 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ const masks = new WeakMap<HTMLInputElement, MaskInput>()
// hacky way to update binding.arg without using defineExposed // hacky way to update binding.arg without using defineExposed
const setArg = (binding: DirectiveBinding, value: string | boolean) => { const setArg = (binding: DirectiveBinding, value: string | boolean) => {
if (!binding.arg || !binding.instance) return if (!binding.arg || (binding.instance == null)) return
const inst = binding.instance as any const inst = binding.instance as any
if (binding.arg in inst) { if (binding.arg in inst) {
@@ -42,7 +42,7 @@ export const vMaska: MaskaDirective = (el, binding) => {
} }
let mask = masks.get(input) let mask = masks.get(input)
if (mask) { if (mask != null) {
mask.update(opts) mask.update(opts)
} else { } else {
mask = new MaskInput(input, opts) mask = new MaskInput(input, opts)