Stringify an added element at the time it is added, not at the time
that toString() is called on the buffer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4390 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -14,7 +14,7 @@ public class StringBuilder
|
|||||||
public function append (... args) :StringBuilder
|
public function append (... args) :StringBuilder
|
||||||
{
|
{
|
||||||
while (args.length > 0) {
|
while (args.length > 0) {
|
||||||
_array.push(args.shift());
|
_array.push(String(args.shift()));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user