This class is remarkably pointless.

We could trash it and change our toStringBuf() methods
to just return a String. I guess. Then the caller would
have to assign the string somewhere. I guess this has some value.

So anyway: Occam's razor, and fixes a small bug: appending undefined
would print as "null" since it was being forced to an Object first.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5722 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-04-15 20:25:26 +00:00
parent 305c53f53a
commit 0f73afc492
+1 -3
View File
@@ -34,9 +34,7 @@ public class StringBuilder
*/
public function append (... args) :StringBuilder
{
for each (var o :Object in args) {
_buf += String(o);
}
_buf += args.join("");
return this;
}