Explorar o código

added , to separate anonymous objects fields.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
3c57cea62c
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      std/flash/Boot.hx

+ 6 - 2
std/flash/Boot.hx

@@ -59,12 +59,16 @@ class Boot {
 					str = "MC("+o._name+") "+str;
 				s += "    ";
 				for k in (__keys__(o)).iterator() {
+					if( str.length != 2 )
+						str += ",\n";
 					if( k == "__construct__" && __typeof__(o[k]) == "function" )
-						str += s + k + " : <function>\n";
+						str += s + k + " : <function>";
 					else
-						str += s + k + " : "+__string_rec(o[k],s)+"\n";
+						str += s + k + " : "+__string_rec(o[k],s);
 				}
 				s = s.substring(4);
+				if( str.length != 2 )
+					str += "\n";
 				str += s + "}";
 				return str;
 			case "function":