Test.EventTarget Class
+ + + + +
+
+
+
+
+Simple custom event implementation.
+
+
+
+ -
+
- Index + + +
- Methods + + +
- Properties + + + +
+
+
+
+
+
+ Item Index
+ + +
+
+
+
+
+ Methods
+ +-
+
+
- + attach + + + + + +
- + detach + + + + + +
- + fire + + + + + +
- + subscribe + + + + deprecated + + + +
- + unsubscribe + + + + deprecated + + + +
+
+
+
+
+
+
+ Properties
+ +-
+
+
- + _handlers + + + static + + + + +
+
+
+
+
+ Methods
+ + +
+
+
+
+
+
+
+ attach
+
+
+
+ (
+
+
+
+
+ Void
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
type+ +
+
+ -
+
+
listener+ +
+
+
+
+
+
+ Adds a listener for a given event type.
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ Void:
+
+
+
+
+
+
+
+
+
+
+ detach
+
+
+
+ (
+
+
+
+
+ Void
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
type+ +
+
+ -
+
+
listener+ +
+
+
+
+
+
+ Removes a listener for a given event type.
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ Void:
+
+
+
+
+
+
+
+
+
+
+ fire
+
+
+
+ (
+
+
+
+
+ Void
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
event+ +
+
+
+
+
+
+ Fires an event based on the passed-in object.
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ Void:
+
+
+
+
+
+
+
+
+
+
+ subscribe
+
+
+
+ (
+
+
+
+
+ Void
+
+
+
+
+ deprecated
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
type+ +
+
+ -
+
+
listener+ +
+
+
+
+
+
+ Adds a listener for a given event type.
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ Void:
+
+
+
+
+
+
+
+
+
+
+ unsubscribe
+
+
+
+ (
+
+
+
+
+ Void
+
+
+
+
+ deprecated
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
-
+
+
type+ +
+
+ -
+
+
listener+ +
+
+
+
+
+
+ Removes a listener for a given event type.
+
+
+
+
+
+ Parameters:
+ + +
+
+
+
+
+Returns:
+ +
+
+
+ Void:
+
+
+
+
+
+
+
+
+
+
+ Properties
+ + +
+
+ Object
+
+
+
+
+ private
+
+
+
+
+
+ static
+
+
+
+
+
+
+
+ _handlers
+ Object
+
+
+
+
+ private
+
+
+
+
+
+ static
+
+
+
+
+
+
+
+
+
+
+
+
+Event handlers for the various events.
+