- Source:
Attaches the callback's associated with the given node.
Example
function clickCallback() {
console.log('CLICKED');
}
$$$
.find('Cube_1')
.on('click', clickCallback)
.click() // `click` the node and also logs 'CLICKED'
Attaches the callback's associated with the given node.
function clickCallback() {
console.log('CLICKED');
}
$$$
.find('Cube_1')
.on('click', clickCallback)
.click() // `click` the node and also logs 'CLICKED'