|
@@ -244,7 +244,7 @@ let newline ctx =
|
|
|
let newprop ctx =
|
|
|
match Buffer.nth ctx.buf (Buffer.length ctx.buf - 1) with
|
|
|
| '{' -> print ctx "\n%s" ctx.tabs
|
|
|
- | _ -> print ctx ",\n%s" ctx.tabs
|
|
|
+ | _ -> print ctx "\n%s," ctx.tabs
|
|
|
|
|
|
let semicolon ctx =
|
|
|
match Buffer.nth ctx.buf (Buffer.length ctx.buf - 1) with
|
|
@@ -935,7 +935,7 @@ let generate_class ctx c =
|
|
|
print ctx "%s = $hxClasses[\"%s\"] = " p (dot_path c.cl_path);
|
|
|
(match c.cl_constructor with
|
|
|
| Some { cf_expr = Some e } -> gen_expr ctx e
|
|
|
- | _ -> (print ctx "function() { }"); ctx.seperator <- true);
|
|
|
+ | _ -> (print ctx "function() { }"); ctx.separator <- true);
|
|
|
newline ctx;
|
|
|
if ctx.js_modern && hxClasses then begin
|
|
|
print ctx "$hxClasses[\"%s\"] = %s" (dot_path c.cl_path) p;
|