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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user