Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6a92e91

Browse files
thorn0petebacondarwin
authored andcommitted
docs(uppercase, lowercase): undocument these artifacts
Closes #11387 Closes #13779
1 parent ba6d377 commit 6a92e91

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

src/Angular.js

+2-22
Original file line numberDiff line numberDiff line change
@@ -119,29 +119,9 @@ var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
119119
// This is used so that it's possible for internal tests to create mock ValidityStates.
120120
var VALIDITY_STATE_PROPERTY = 'validity';
121121

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;};
133122
var hasOwnProperty = Object.prototype.hasOwnProperty;
134123

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;};
145125
var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};
146126

147127

@@ -161,7 +141,7 @@ var manualUppercase = function(s) {
161141

162142
// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish
163143
// 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
165145
if ('i' !== 'I'.toLowerCase()) {
166146
lowercase = manualLowercase;
167147
uppercase = manualUppercase;

0 commit comments

Comments
 (0)