MCPcopy Create free account
hub / github.com/Lobos/react-ui / recursiveFunction

Function recursiveFunction

src/utils/events.js:23–26  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

21export function once (el, type, callback) {
22 let typeArray = type.split(' ');
23 let recursiveFunction = function(e){
24 e.target.removeEventListener(e.type, recursiveFunction);
25 return callback(e);
26 };
27
28 for (let i = typeArray.length - 1; i >= 0; i--) {
29 on(el, typeArray[i], recursiveFunction);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…