While working with minified Jquery I noticed multiple statements concatenated by commas.
For Example
event.preventDefault();
event.stopPropagation();
jQuery.event.trigger( event, data, this[0] );
return event.result;
minified to:
c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result
I did see a similar question : JavaScript variable definition: Commas vs. Semicolons
But in this case, obviously there is no performance benefit or reduction of characters.
Could I assume it was just a matter of choice for the minification script to do so?
Wouldn't it have been more safe to go with semicolon in the first place.. and prevent the overhead of the logic which avoided concatenation of commas in case of the return statement.