- Source:
Given an node, trigger the associated event
in order for the appropriate callbacks to be
invoked.
Example
function clickCallback() {
console.log('RANDOM EVENT');
}
$$$
.find('Cube_1')
.on('sampleEvent', clickCallback)
.trigger('sampleEvent') // logs 'RANDOM EVENT'