Prechádzať zdrojové kódy

Add _x_isInit in initTree walker

Alexandre Lepretre 1 rok pred
rodič
commit
622d2e2d6b
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      packages/alpinejs/src/lifecycle.js

+ 1 - 0
packages/alpinejs/src/lifecycle.js

@@ -88,6 +88,7 @@ export function initTree(el, walker = walk, intercept = () => {}) {
 
             directives(el, el.attributes).forEach(handle => handle())
 
+            el._x_isInit = true
             el._x_ignore && skip()
         })
     })