Array.prototype.encodeUtf8 renamed to node.encodeUtf8(array)

v0.7.4-release
Ryan 2009-07-20 18:19:13 +02:00
parent 88e9a5f122
commit 2a695a9721
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ node.inherits = function (ctor, superCtor) {
};
// This is useful for dealing with raw encodings.
Array.prototype.encodeUtf8 = function () {
return String.fromCharCode.apply(String, this);
node.encodeUtf8 = function (array) {
return String.fromCharCode.apply(String, array);
};
node.cat = function(location, encoding, callback) {