@@ -119,29 +119,9 @@ var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
119
119
// This is used so that it's possible for internal tests to create mock ValidityStates.
120
120
var VALIDITY_STATE_PROPERTY = 'validity' ;
121
121
122
- /**
123
- * @ngdoc function
124
- * @name angular.lowercase
125
- * @module ng
126
- * @kind function
127
- *
128
- * @description Converts the specified string to lowercase.
129
- * @param {string } string String to be converted to lowercase.
130
- * @returns {string } Lowercased string.
131
- */
132
- var lowercase = function ( string ) { return isString ( string ) ? string . toLowerCase ( ) : string ; } ;
133
122
var hasOwnProperty = Object . prototype . hasOwnProperty ;
134
123
135
- /**
136
- * @ngdoc function
137
- * @name angular.uppercase
138
- * @module ng
139
- * @kind function
140
- *
141
- * @description Converts the specified string to uppercase.
142
- * @param {string } string String to be converted to uppercase.
143
- * @returns {string } Uppercased string.
144
- */
124
+ var lowercase = function ( string ) { return isString ( string ) ? string . toLowerCase ( ) : string ; } ;
145
125
var uppercase = function ( string ) { return isString ( string ) ? string . toUpperCase ( ) : string ; } ;
146
126
147
127
@@ -161,7 +141,7 @@ var manualUppercase = function(s) {
161
141
162
142
// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish
163
143
// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods
164
- // with correct but slower alternatives.
144
+ // with correct but slower alternatives. See https://github.com/angular/angular.js/issues/11387
165
145
if ( 'i' !== 'I' . toLowerCase ( ) ) {
166
146
lowercase = manualLowercase ;
167
147
uppercase = manualUppercase ;
0 commit comments