Skip to content

Commit

Permalink
breaking: Remove cant-touch-this class for disabling pattern executio…
Browse files Browse the repository at this point in the history
…n. Use disable-patterns instead.
  • Loading branch information
thet committed Jan 12, 2025
1 parent 7d2728e commit 0efdacc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ const registry = {
return (
!el.matches(".disable-patterns") &&
!el?.parentNode?.closest?.(".disable-patterns") &&
!el?.parentNode?.closest?.("pre") &&
!el?.parentNode?.closest?.("template") && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
!el.matches(".cant-touch-this") && // BBB. TODO: Remove with next major version.
!el?.parentNode?.closest?.(".cant-touch-this") // BBB. TODO: Remove with next major version.
!el?.parentNode?.closest?.("pre")
//!el?.parentNode?.closest?.("template") && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
);
});

Expand Down

0 comments on commit 0efdacc

Please sign in to comment.