浏览代码

seperator -> separator, revert e920e98.

Luca Deltdesco 12 年之前
父节点
当前提交
f7d66a6eea
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      genjs.ml

+ 2 - 2
genjs.ml

@@ -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;