svn: /web/doc-editor/trunk/js/ util.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 21 Mar 2010 16:23:35 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=296479

Log:
Add ucFirst to string object

Changed paths:
    U   web/doc-editor/trunk/js/util.js

Modified: web/doc-editor/trunk/js/util.js
===================================================================
--- web/doc-editor/trunk/js/util.js	2010-03-21 15:44:46 UTC (rev 296478)
+++ web/doc-editor/trunk/js/util.js	2010-03-21 16:23:35 UTC (rev 296479)
@@ -1,5 +1,10 @@
 Ext.BLANK_IMAGE_URL = 'http://extjs.cachefly.net/ext-3.1.1/resources/images/default/s.gif';

+// Add ucFirst to string object
+String.prototype.ucFirst = function () {
+	return this.substr(0,1).toUpperCase() + this.substr(1,this.length);
+};
+
 // javascript debug-logging wrapper
 function log()
 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.