Fixes #1638. The case of the incomplete optimisation.

This commit is contained in:
Alexander Ljungberg
2012-07-28 01:58:41 +01:00
parent bd0114aa06
commit df5a7104b1
+2 -3
View File
@@ -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);