Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure ListenerMap

From Leeroopedia
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing a map of listeners with utility functions for managing listeners on an event target, used by Selenium JavaScript atoms.

Description

goog.events.ListenerMap is a vendored copy of the Google Closure Library module. It provides an internal data structure used by goog.events.EventTarget to manage event listeners. It maps event types to arrays of listeners and provides methods for adding, removing, and querying listeners including getTypeCount, getListenerCount, and add. This is an internal module not intended for use outside the goog.events package. Selenium uses this as part of its JavaScript atom infrastructure for browser automation commands.

Usage

This module is consumed internally by Selenium's JavaScript atoms build system. It is not imported directly by end users.

Code Reference

Source Location

Key Exports

goog.provide('goog.events.ListenerMap');

// Constructor: goog.events.ListenerMap(src)
// Final class. Internal to goog.events package.
// Key methods: getTypeCount, getListenerCount, add, remove, getListeners

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment