diff options
| author | Javier Mendiara CaƱardo | 2013-03-18 19:18:30 +0100 | 
|---|---|---|
| committer | James deBoer | 2013-03-19 11:00:42 -0700 | 
| commit | ef76afdf8096bca3eb4e3e3180a7f34de7f193f9 (patch) | |
| tree | c540e63ebb60bc5e4bca50e51a1708d906935dfd /src | |
| parent | 564963dc27c7d1da681cbda22cf9b219ad51e967 (diff) | |
| download | angular.js-ef76afdf8096bca3eb4e3e3180a7f34de7f193f9.tar.bz2 | |
chore(Angular): remove superfluous fromCharCode function
Remove fromCharCode function as it was used only in two inner
functions in the code, and its functionality is achieved in several
other places by using String.fromCharCode
Breaks fromCharCode closure function, String.fromCharCode should be
used instead
Diffstat (limited to 'src')
| -rw-r--r-- | src/Angular.js | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/src/Angular.js b/src/Angular.js index 5d9d2e12..c07a788c 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -28,12 +28,12 @@ var uppercase = function(string){return isString(string) ? string.toUpperCase()  var manualLowercase = function(s) {    return isString(s) -      ? s.replace(/[A-Z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) | 32);}) +      ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})        : s;  };  var manualUppercase = function(s) {    return isString(s) -      ? s.replace(/[a-z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) & ~32);}) +      ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})        : s;  }; @@ -46,8 +46,6 @@ if ('i' !== 'I'.toLowerCase()) {    uppercase = manualUppercase;  } -function fromCharCode(code) {return String.fromCharCode(code);} -  var /** holds major version number for IE or NaN for real browsers */      msie              = int((/msie (\d+)/.exec(lowercase(navigator.userAgent)) || [])[1]), | 
