File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -180,17 +180,14 @@ const registry = {
180
180
) ;
181
181
matches = matches . filter ( ( el ) => {
182
182
// Filter out patterns:
183
- // - with class ``.disable-patterns``
184
- // - wrapped in ``.disable-patterns`` elements
183
+ // - with class ``.disable-patterns`` or wrapped within.
185
184
// - wrapped in ``<pre>`` elements
186
- // - wrapped in ``<template>`` elements
185
+ // - wrapped in ``<template>`` elements (not reachable anyways)
187
186
return (
188
- ! el . matches ( ".disable-patterns" ) &&
189
- ! el ?. parentNode ?. closest ?. ( ".disable-patterns" ) &&
187
+ ! el ?. closest ?. ( ".disable-patterns" ) &&
190
188
! el ?. parentNode ?. closest ?. ( "pre" ) &&
191
- ! el ?. parentNode ?. closest ?. ( "template" ) && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
192
- ! el . matches ( ".cant-touch-this" ) && // BBB. TODO: Remove with next major version.
193
- ! el ?. parentNode ?. closest ?. ( ".cant-touch-this" ) // BBB. TODO: Remove with next major version.
189
+ // BBB. TODO: Remove with next major version.
190
+ ! el ?. closest ?. ( ".cant-touch-this" )
194
191
) ;
195
192
} ) ;
196
193
You can’t perform that action at this time.
0 commit comments