Browse Source

allowed no_js_remoting

Nicolas Cannasse 19 years ago
parent
commit
da49d9692e
1 changed files with 4 additions and 0 deletions
  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 flash
 
 
+	#if no_js_remoting
+	public static function init() {
+	#else true
 	static function __init__() {
 	static function __init__() {
+	#end
 		#if flash9
 		#if flash9
 		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
 		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
 		#else true
 		#else true