mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
Fixes #1638. The case of the incomplete optimisation.
This commit is contained in:
@@ -285,7 +285,6 @@ CFData.bytesToUtf16String = function(bytes)
|
||||
return String.fromCharCode.apply(NULL, temp);
|
||||
};
|
||||
|
||||
|
||||
CFData.encodeBase64Utf16String = function(input)
|
||||
{
|
||||
// charCodeAt returns UTF-16.
|
||||
@@ -293,8 +292,8 @@ CFData.encodeBase64Utf16String = function(input)
|
||||
for (var i = 0; i < input.length; i++)
|
||||
{
|
||||
var c = input.charCodeAt(i);
|
||||
temp.push(input.charCodeAt(i) & 0xFF);
|
||||
temp.push((input.charCodeAt(i) & 0xFF00) >> 8);
|
||||
temp.push(c & 0xFF);
|
||||
temp.push((c & 0xFF00) >> 8);
|
||||
}
|
||||
|
||||
return CFData.encodeBase64Array(temp);
|
||||
|
||||
Reference in New Issue
Block a user