2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-08 17:22:27 +03:00

Spread tokens object in directive to remove observer

This commit is contained in:
Alexander Shabunevich
2019-10-15 19:09:16 +03:00
parent c31d3ecacf
commit 2f71d54a5a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ function getOpts (mask) {
opts.mask = mask
} else if (mask.mask) {
opts.mask = mask.mask
opts.tokens = mask.tokens ? mask.tokens : {}
opts.tokens = mask.tokens ? { ...mask.tokens } : {}
}
return opts