Skip to content

Commit 2c6f972

Browse files
committed
Micro-optimize event-handling-children
... due to heavy use during event processing
1 parent 01574cd commit 2c6f972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Terminal/Widgets/Events.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ role EventHandling {
183183

184184
#| Children that understand EventHandling
185185
method event-handling-children() {
186-
@.children.grep({ $_ ~~ EventHandling })
186+
@.children.grep({ EventHandling.ACCEPTS($_) })
187187
}
188188

189189
#| Process an event, calling pre- and post- hooks

0 commit comments

Comments
 (0)