constants.js (631B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 /** 8 * Any event listener flagged with this symbol will not be considered when 9 * the EventCollector class enumerates listeners for nodes. For example: 10 * 11 * const someListener = () => {}; 12 * someListener[EXCLUDED_LISTENER] = true; 13 * node.addEventListener("event", someListener); 14 */ 15 const EXCLUDED_LISTENER = Symbol("event-collector-excluded-listener"); 16 17 exports.EXCLUDED_LISTENER = EXCLUDED_LISTENER;