Prechádzať zdrojové kódy

removed __res + fixed ExampleJSGenerator

Nicolas Cannasse 13 rokov pred
rodič
commit
d108272570
2 zmenil súbory, kde vykonal 0 pridanie a 10 odobranie
  1. 0 4
      genjs.ml
  2. 0 6
      std/haxe/macro/ExampleJSGenerator.hx

+ 0 - 4
genjs.ml

@@ -1160,10 +1160,6 @@ let generate com =
 	end;
 	newline ctx;
 	List.iter (generate_type ctx) com.types;
-	if has_feature ctx "haxe.Resource.content" then begin
-		print ctx "js.Boot.__res = {}";
-		newline ctx;
-	end;
 	let rec chk_features e =
 		match e.eexpr with
 		| TClosure _ -> add_feature ctx "use.$bind"

+ 0 - 6
std/haxe/macro/ExampleJSGenerator.hx

@@ -235,12 +235,6 @@ class ExampleJSGenerator {
 		newline();
 		for( t in api.types )
 			genType(t);
-		print("$_ = {}");
-		newline();
-		print("js.Boot.__res = {}");
-		newline();
-		print("js.Boot.__init()");
-		newline();
 		for( e in inits ) {
 			print(api.generateStatement(e));
 			newline();