瀏覽代碼

allowed no_js_remoting

Nicolas Cannasse 19 年之前
父節點
當前提交
da49d9692e
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      std/haxe/remoting/Connection.hx

+ 4 - 0
std/haxe/remoting/Connection.hx

@@ -129,7 +129,11 @@ class Connection implements Dynamic<Connection> {
 
 	#if flash
 
+	#if no_js_remoting
+	public static function init() {
+	#else true
 	static function __init__() {
+	#end
 		#if flash9
 		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
 		#else true