Skip to content

Commit

Permalink
For browsers/runtimes that do not support MutationObserver, always ma…
Browse files Browse the repository at this point in the history
…rk dirty
  • Loading branch information
tbranyen committed Apr 23, 2021
1 parent 41ca199 commit 2d99a49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/diffhtml/lib/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ export default class Transaction {
characterData: true,
});
}
// If there is no MutationObserver, then the DOM is dirty by default and
// rescanned every time.
else {
state.isDirty = true;
}

// Execute all queued scripts.
scriptsToExecute.forEach((type = EMPTY.STR, vTree) => {
Expand Down

0 comments on commit 2d99a49

Please sign in to comment.