Merge "Language: s/error_log/wfWarn/"
[lhc/web/wiklou.git] / resources / src / jquery / jquery.mwExtension.js
index 03c1c85..dc7aaa4 100644 (file)
@@ -3,7 +3,7 @@
  */
 ( function ( $ ) {
 
-       $.extend({
+       $.extend( {
                trimLeft: function ( str ) {
                        return str === null ? '' : str.toString().replace( /^\s+/, '' );
                },
@@ -12,7 +12,7 @@
                                        '' : str.toString().replace( /\s+$/, '' );
                },
                ucFirst: function ( str ) {
-                       return str.charAt( 0 ).toUpperCase() + str.substr( 1 );
+                       return str.charAt( 0 ).toUpperCase() + str.slice( 1 );
                },
                escapeRE: function ( str ) {
                        return str.replace ( /([\\{}()|.?*+\-\^$\[\]])/g, '\\$1' );
                        }
                        return true;
                }
-       });
+       } );
 
 }( jQuery ) );