GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — events: inline iterationCondition hybrid dispatch closure · nodejs/node@5d373ad

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • event_target.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/event_target.js‎

Copy file name to clipboardExpand all lines: lib/internal/event_target.js
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -806,13 +806,8 @@ class EventTarget {
806806
let handler = root.next;
807807
let next;
808808

809-
const iterationCondition = () => {
810-
if (handler === undefined) {
811-
return false;
812-
}
813-
return root.resistStopPropagation || handler.passive || event?.[kStop] !== true;
814-
};
815-
while (iterationCondition()) {
809+
while (handler !== undefined &&
810+
(root.resistStopPropagation || handler.passive || event?.[kStop] !== true)) {
816811
// Cache the next item in case this iteration removes the current one
817812
next = handler.next;
818813

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.