MCPcopy
hub / github.com/anthonyshort/deku / trigger

Function trigger

lib/render.js:943–946  ·  view source on GitHub ↗

* Trigger a hook on a component. * * @param {String} name Name of hook. * @param {Entity} entity The component instance. * @param {Array} args To pass along to hook.

(name, entity, args)

Source from the content-addressed store, hash-verified

941 */
942
943 function trigger (name, entity, args) {
944 if (typeof entity.component[name] !== 'function') return
945 return entity.component[name].apply(null, args)
946 }
947
948 /**
949 * Update an entity to match the latest rendered vode. We always

Callers 5

mountEntityFunction · 0.85
unmountEntityFunction · 0.85
flushMountQueueFunction · 0.85
updateEntityFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected