|
@@ -1,5 +1,4 @@
|
|
import { directive, prefix } from '../directives'
|
|
import { directive, prefix } from '../directives'
|
|
import { mutateDom } from '../mutation'
|
|
import { mutateDom } from '../mutation'
|
|
-import { nextTick } from '../nextTick'
|
|
|
|
|
|
|
|
-directive('cloak', el => nextTick(() => mutateDom(() => el.removeAttribute(prefix('cloak')))))
|
|
|
|
|
|
+directive('cloak', el => queueMicrotask(() => mutateDom(() => el.removeAttribute(prefix('cloak')))))
|