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

docs(changelog): add deprecation notice #15441

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,7 @@ This version of AngularJS is problematic due to a issue during its release. Plea

- The `ngTouch` module's `ngClick` directive has been deprecated and disabled by default. See the breaking
changes section for more information
- The `angular.lowercase` and `angular.uppercase` functions have been deprecated. It is recommended to use `String.prototype.toLowerCase` and `String.prototype.toUpperCase` functions instead.

## Bug Fixes

Expand Down
24 changes: 24 additions & 0 deletions src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,33 @@ var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
// This is used so that it's possible for internal tests to create mock ValidityStates.
var VALIDITY_STATE_PROPERTY = 'validity';


var hasOwnProperty = Object.prototype.hasOwnProperty;

/**
* @ngdoc function
* @name angular.lowercase
* @module ng
* @kind function
* @deprecated
*
* @description Converts the specified string to lowercase.
* @param {string} string String to be converted to lowercase.
* @returns {string} Lowercased string.
*/
var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};

/**
* @ngdoc function
* @name angular.uppercase
* @module ng
* @kind function
* @deprecated
*
* @description Converts the specified string to uppercase.
* @param {string} string String to be converted to uppercase.
* @returns {string} Uppercased string.
*/
var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};


Expand Down