Skip to content

Commit 72c393a

Browse files
committed
breaking: Remove cant-touch-this class for disabling pattern execution. Use disable-patterns instead.
1 parent f9afcf2 commit 72c393a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/core/registry.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,8 @@ const registry = {
172172
return (
173173
!el.matches(".disable-patterns") &&
174174
!el?.parentNode?.closest?.(".disable-patterns") &&
175-
!el?.parentNode?.closest?.("pre") &&
176-
!el?.parentNode?.closest?.("template") && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
177-
!el.matches(".cant-touch-this") && // BBB. TODO: Remove with next major version.
178-
!el?.parentNode?.closest?.(".cant-touch-this") // BBB. TODO: Remove with next major version.
175+
!el?.parentNode?.closest?.("pre")
176+
//!el?.parentNode?.closest?.("template") && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
179177
);
180178
});
181179

0 commit comments

Comments
 (0)