MCPcopy Create free account
hub / github.com/electerious/basicSlider / stopEvent

Function stopEvent

src/scripts/main.js:6–11  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4const ARROW_RIGHT = 'right'
5
6const stopEvent = function(e) {
7
8 if (typeof e.stopPropagation === 'function') e.stopPropagation()
9 if (typeof e.preventDefault === 'function') e.preventDefault()
10
11}
12
13const validate = function(opts = {}) {
14

Callers 2

renderArrowFunction · 0.85
renderDotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected