MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / addEvent

Function addEvent

scripts/smoothScroll.js:702–704  ·  view source on GitHub ↗

* HELPERS

(type, fn, arg)

Source from the content-addressed store, hash-verified

700 * HELPERS
701 ***********************************************/
702 function addEvent(type, fn, arg) {
703 window.addEventListener(type, fn, arg || false);
704 }
705 function removeEvent(type, fn, arg) {
706 window.removeEventListener(type, fn, arg || false);
707 }

Callers 5

initFunction · 0.85
loadedFunction · 0.85
enableSmoothScrollFunction · 0.85
mousemoveFunction · 0.85
mousedownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected