MCPcopy Index your code
hub / github.com/electerious/basicScroll / setProps

Function setProps

src/scripts/main.js:312–319  ·  view source on GitHub ↗
(elem, props)

Source from the content-addressed store, hash-verified

310 * @param {Object} props - Object of props.
311 */
312const setProps = function(elem, props) {
313
314 Object.keys(props).forEach((key) => setProp(elem, {
315 key: key,
316 value: props[key]
317 }))
318
319}
320
321/**
322 * Gets and sets new props when the user has scrolled and when there are active instances.

Callers 2

loopFunction · 0.85
_updateFunction · 0.85

Calls 1

setPropFunction · 0.85

Tested by

no test coverage detected