فهرست منبع

Remove extra destroyTree call (#4151)

Co-authored-by: c4710n <c4710n@users.noreply.github.com>
Zeke Dou 1 سال پیش
والد
کامیت
b1fff5d8fa
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      packages/alpinejs/src/mutation.js

+ 0 - 4
packages/alpinejs/src/mutation.js

@@ -1,5 +1,3 @@
-import { destroyTree } from "./lifecycle"
-
 let onAttributeAddeds = []
 let onElRemoveds = []
 let onElAddeds = []
@@ -177,8 +175,6 @@ function onMutate(mutations) {
         if (addedNodes.has(node)) continue
 
         onElRemoveds.forEach(i => i(node))
-
-        destroyTree(node)
     }
 
     // Mutations are bundled together by the browser but sometimes