From 5e769376f26779b3f7410b0a2ec6b737334ab620 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 4 Oct 2006 01:15:15 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/util/StringBuilder.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as/com/threerings/util/StringBuilder.as b/src/as/com/threerings/util/StringBuilder.as index 820cbe4d0..85a36534f 100644 --- a/src/as/com/threerings/util/StringBuilder.as +++ b/src/as/com/threerings/util/StringBuilder.as @@ -14,7 +14,7 @@ public class StringBuilder public function append (... args) :StringBuilder { while (args.length > 0) { - _array.push(args.shift()); + _array.push(String(args.shift())); } return this; }