I've always used on with multiple events with the thought that it would simplify my code and make it easier to understand, but from time to time I came across several plugins using the thread in a chained form.
Example with multiple events:
$('#foo').on('click , dblclick', function(e) {
if (e.type === 'click') {
console.log('click');
} else {
console.log('double click');
}
});
Thread chained:
$('bar').on('click', function() {
console.log('click');
}).on('dblclick', function() {
console.log('double click');
});
Analytically, is there any advantage / disadvantage from one approach to another? is there any case that would slow down?