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 = {
180180 ) ;
181181 matches = matches . filter ( ( el ) => {
182182 // Filter out patterns:
183- // - with class ``.disable-patterns``
184- // - wrapped in ``.disable-patterns`` elements
183+ // - with class ``.disable-patterns`` or wrapped within.
185184 // - wrapped in ``<pre>`` elements
186- // - wrapped in ``<template>`` elements
185+ // - wrapped in ``<template>`` elements (not reachable anyways)
187186 return (
188- ! el . matches ( ".disable-patterns" ) &&
189- ! el ?. parentNode ?. closest ?. ( ".disable-patterns" ) &&
187+ ! el ?. closest ?. ( ".disable-patterns" ) &&
190188 ! 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" )
194191 ) ;
195192 } ) ;
196193
You can’t perform that action at this time.
0 commit comments