* 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)
| 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 |
no outgoing calls
no test coverage detected