User "Hashar" posted a comment on MediaWiki.r96016.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96016#c24412
Commit summary:

Optimize ucFirst by using charAt

Comment:

Looks like a valid micro optimization. Since charAt() is in JS 1.0, we can 
assume this is working correctly on all browsers.

Note that both charAt() and substr() returns an empty string if index is out of 
range.

_______________________________________________
MediaWiki-CodeReview mailing list
mediawiki-coderev...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to