Skip to content

Commit

Permalink
Remove extra destroyTree call (#4151)
Browse files Browse the repository at this point in the history
Co-authored-by: c4710n <c4710n@users.noreply.github.com>
  • Loading branch information
c4710n and c4710n authored Apr 18, 2024
1 parent 95ae590 commit b1fff5d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/alpinejs/src/mutation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { destroyTree } from "./lifecycle"

let onAttributeAddeds = []
let onElRemoveds = []
let onElAddeds = []
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1fff5d

Please sign in to comment.