MCPcopy Create free account
hub / github.com/breck7/scroll / trigger

Method trigger

external/.scrollLibs.js:17328–17338  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

17326 return this.setAtoms(atoms)
17327 }
17328 trigger(event) {
17329 if (this._listeners && this._listeners.has(event.constructor)) {
17330 const listeners = this._listeners.get(event.constructor)
17331 const listenersToRemove = []
17332 for (let index = 0; index < listeners.length; index++) {
17333 const listener = listeners[index]
17334 if (listener(event) === true) listenersToRemove.push(index)
17335 }
17336 listenersToRemove.reverse().forEach(index => listenersToRemove.splice(index, 1))
17337 }
17338 }
17339 triggerAncestors(event) {
17340 if (this.isRoot()) return
17341 const parent = this.parent

Callers 15

SeFunction · 0.80
.scrollLibs.jsFile · 0.80
lFunction · 0.80
triggerAncestorsMethod · 0.80
DataTableFunction · 0.80
_fnScrollDrawFunction · 0.80
_fnCallbackFireFunction · 0.80
_pagingDrawFunction · 0.80
.datatables.jsFile · 0.80
finaliseFunction · 0.80
moveFunction · 0.80
CriteriaFunction · 0.80

Calls 4

forEachMethod · 0.80
reverseMethod · 0.80
hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected