change fireListener to a var so we can reassign it at runtime

Project: http://git-wip-us.apache.org/repos/asf/flex-typedefs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-typedefs/commit/4f6ee20b
Tree: http://git-wip-us.apache.org/repos/asf/flex-typedefs/tree/4f6ee20b
Diff: http://git-wip-us.apache.org/repos/asf/flex-typedefs/diff/4f6ee20b

Branch: refs/heads/develop
Commit: 4f6ee20bd4cf98bdae11cec16e81d14094432ded
Parents: 08f98e8
Author: Alex Harui <[email protected]>
Authored: Tue Oct 25 12:55:09 2016 -0700
Committer: Alex Harui <[email protected]>
Committed: Tue Oct 25 12:55:36 2016 -0700

----------------------------------------------------------------------
 GCL/src/main/flex/goog/events.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-typedefs/blob/4f6ee20b/GCL/src/main/flex/goog/events.as
----------------------------------------------------------------------
diff --git a/GCL/src/main/flex/goog/events.as b/GCL/src/main/flex/goog/events.as
index 62c7141..b01dbc9 100644
--- a/GCL/src/main/flex/goog/events.as
+++ b/GCL/src/main/flex/goog/events.as
@@ -14,8 +14,8 @@
 
 package goog {
 public class events {
-    public static function get fireListener():Function{return null;}
-    public static function set fireListener(value:Function):void{}
+       // fireListener is a static function, but we want to re-assign it from 
FlexJS so we declare it as a var
+    public static var fireListener:Function;
        public static function hasListener(object:Object, type:String = null, 
capture:Boolean = false):Boolean{return false};
        public static function listen(object:Object, type:String, 
handler:Function, capture:Boolean = false, scope:Object = null):Boolean{return 
false}; 
        public static function unlisten(object:Object, type:String, 
handler:Function, capture:Boolean = false, scope:Object = null):Boolean{return 
false}; 

Reply via email to