浏览代码

fixed issue #566

Nicolas Cannasse 13 年之前
父节点
当前提交
e635373490
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/macro/DefaultJSGenerator.hx

+ 1 - 1
std/haxe/macro/DefaultJSGenerator.hx

@@ -231,7 +231,7 @@ class DefaultJSGenerator {
 	}
 
 	public function generate() {
-		print("$estr = function() { return js.Boot.__string_rec(this,''); }");
+		print("var $_, $hxClasses = $hxClasses || {}, $estr = function() { return js.Boot.__string_rec(this,''); }");
 		newline();
 		/*
 		(match ctx.namespace with