User "Krinkle" posted a comment on MediaWiki.r99108. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99108#c23980 Commit summary:
Kill weird leading semi colon from jquery.form.js More documentation stuff Comment: Interesting read: http://stackoverflow.com/questions/1873983/what-does-the-leading-semicolon-in-javascript-libraries-do Several third party libraries don't end their script with a semi-colon, so other libraries started the habbot of starting the file with a (usually) no-op/innocent semi-colon. So that when a simple and optimistic concatenation framework concatenates two JS files, it will not result in a TypeError: <pre> (function(){ ... })()(function(){ ... })() > TypeError </pre> _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
