Browse Source

fixed issue #303

Nicolas Cannasse 14 years ago
parent
commit
48d49edb44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/flash9/events/IEventDispatcher.hx

+ 2 - 2
std/flash9/events/IEventDispatcher.hx

@@ -1,9 +1,9 @@
 package flash.events;
 package flash.events;
 
 
 extern interface IEventDispatcher {
 extern interface IEventDispatcher {
-	function addEventListener(type : String, listener : Dynamic, useCapture : Bool = false, priority : Int = 0, useWeakReference : Bool = false) : Void;
+	function addEventListener(type : String, listener : Dynamic -> Void, useCapture : Bool = false, priority : Int = 0, useWeakReference : Bool = false) : Void;
 	function dispatchEvent(event : Event) : Bool;
 	function dispatchEvent(event : Event) : Bool;
 	function hasEventListener(type : String) : Bool;
 	function hasEventListener(type : String) : Bool;
-	function removeEventListener(type : String, listener : Dynamic, useCapture : Bool = false) : Void;
+	function removeEventListener(type : String, listener : Dynamic -> Void, useCapture : Bool = false) : Void;
 	function willTrigger(type : String) : Bool;
 	function willTrigger(type : String) : Bool;
 }
 }