events

Classes

goog.events.ActionEvent
This class is used for the goog.events.ActionHandler.EventType.ACTION event.
goog.events.ActionEventWrapper_
Event wrapper for action handling. Fires when an element is activated either by clicking it or by focusing it and pressing Enter.
goog.events.ActionHandler
A wrapper around an element that you want to listen to ACTION events on.
goog.events.BeforeActionEvent
This class is used for the goog.events.ActionHandler.EventType.BEFOREACTION event. BEFOREACTION gives a chance to the application so the keyboard focus can be restored back, if required.
goog.events.BrowserEvent
Accepts a browser event object and creates a patched, cross browser event object. The content of this object will not be initialized if no event object is provided. If this is the case, init() needs to be invoked separately.
goog.events.Event
A base class for event objects, so that they can support preventDefault and stopPropagation.
goog.events.EventHandler
Super class for objects that want to easily manage a number of event listeners. It allows a short cut to listen and also provides a quick way to remove all events listeners belonging to this object.
goog.events.EventId
A templated class that is used when registering for events. Typical usage: /** @type {goog.events.EventId.} var myEventId = new goog.events.EventId( goog.events.getUniqueId(('someEvent')); // No need to cast or declare here since the compiler knows the correct // type of 'evt' (MyEventObj). something.listen(myEventId, function(evt) {});
goog.events.EventTarget
An implementation of goog.events.Listenable with full W3C EventTarget-like support (capture/bubble mechanism, stopping event propagation, preventing default actions). You may subclass this class to turn your class into a Listenable. Unless propagation is stopped, an event dispatched by an EventTarget will bubble to the parent returned by getParentEventTarget. To set the parent, call setParentEventTarget. Subclasses that don't support changing the parent can override the setter to throw an error. Example usage:
  var source = new goog.events.EventTarget();
  function handleEvent(e) {
    alert('Type: ' + e.type + '; Target: ' + e.target);
  }
  source.listen('foo', handleEvent);
  // Or: goog.events.listen(source, 'foo', handleEvent);
  ...
  source.dispatchEvent('foo');  // will call handleEvent
  ...
  source.unlisten('foo', handleEvent);
  // Or: goog.events.unlisten(source, 'foo', handleEvent);
goog.events.EventWrapper
Interface for event wrappers.
goog.events.FileDropHandler
A files drag and drop event detector. Gets an element as parameter and fires goog.events.FileDropHandler.EventType.DROP event when files are dropped in the element.
goog.events.FocusHandler
This event handler allows you to catch focus events when descendants gain or loses focus.
goog.events.ImeHandler
Dispatches high-level events for IMEs.
goog.events.InputHandler
This event handler will dispatch events when the user types into a text input, password input or a textarea
goog.events.KeyEvent
This class is used for the goog.events.KeyHandler.EventType.KEY event and it overrides the key code with the fixed key code.
goog.events.KeyHandler
A wrapper around an element that you want to listen to keyboard events on.
goog.events.Listenable
A listenable interface. A listenable is an object with the ability to dispatch/broadcast events to "event listeners" registered via listen/listenOnce. The interface allows for an event propagation mechanism similar to one offered by native browser event targets, such as capture/bubble mechanism, stopping propagation, and preventing default actions. Capture/bubble mechanism depends on the ancestor tree constructed via #getParentEventTarget; this tree must be directed acyclic graph. The meaning of default action(s) in preventDefault is specific to a particular use case. Implementations that do not support capture/bubble or can not have a parent listenable can simply not implement any ability to set the parent listenable (and have #getParentEventTarget return null). Implementation of this class can be used with or independently from goog.events. Implementation must call #addImplementation(implClass).
goog.events.ListenableKey
An interface that describes a single registered listener.
goog.events.Listener
Simple class that stores information about a listener
goog.events.ListenerMap
Creates a new listener map.
goog.events.MouseWheelEvent
A base class for mouse wheel events. This is used with the MouseWheelHandler.
goog.events.MouseWheelHandler
This event handler allows you to catch mouse wheel events in a consistent manner.
goog.events.OnlineHandler
Basic object for detecting whether the online state changes.
goog.events.PasteHandler
A paste event detector. Gets an element as parameter and fires goog.events.PasteHandler.EventType.PASTE events when text is pasted in the element. Uses heuristics to detect paste events in FF2. See more details of the heuristic on #handleEvent_.

Public Protected Private

Enumerations

goog.events.BrowserFeature :
Enum of browser capabilities.
Constants:
HAS_HTML5_NETWORK_EVENT_SUPPORT
No description.
HAS_NAVIGATOR_ONLINE_PROPERTY
No description.
HAS_W3C_BUTTON
No description.
HAS_W3C_EVENT_SUPPORT
No description.
HTML5_NETWORK_EVENTS_FIRE_ON_BODY
No description.
SET_KEY_CODE_TO_PREVENT_DEFAULT
No description.
TOUCH_ENABLED
No description.
Code »
goog.events.CaptureSimulationMode :
No description.
Constants:
OFF_AND_FAIL
No description.
OFF_AND_SILENT
No description.
ON
No description.
Code »
goog.events.EventType :
Constants for event names.
Constants:
ANIMATIONEND
No description.
ANIMATIONITERATION
No description.
ANIMATIONSTART
No description.
BEFORECOPY
No description.
BEFORECUT
No description.
BEFOREPASTE
No description.
BEFOREUNLOAD
No description.
BLUR
No description.
CHANGE
No description.
CLICK
No description.
COMPOSITIONEND
No description.
COMPOSITIONSTART
No description.
COMPOSITIONUPDATE
No description.
CONNECT
No description.
CONSOLEMESSAGE
No description.
CONTEXTMENU
No description.
COPY
No description.
CUT
No description.
DBLCLICK
No description.
DEACTIVATE
No description.
DOMATTRMODIFIED
No description.
DOMCHARACTERDATAMODIFIED
No description.
DOMCONTENTLOADED
No description.
DOMNODEINSERTED
No description.
DOMNODEINSERTEDINTODOCUMENT
No description.
DOMNODEREMOVED
No description.
DOMNODEREMOVEDFROMDOCUMENT
No description.
DOMSUBTREEMODIFIED
No description.
DRAG
No description.
DRAGEND
No description.
DRAGENTER
No description.
DRAGLEAVE
No description.
DRAGOVER
No description.
DRAGSTART
No description.
DROP
No description.
ERROR
No description.
EXIT
No description.
FOCUS
No description.
FOCUSIN
No description.
FOCUSOUT
No description.
GOTPOINTERCAPTURE
No description.
HASHCHANGE
No description.
HELP
No description.
INPUT
No description.
KEYDOWN
No description.
KEYPRESS
No description.
KEYUP
No description.
LOAD
No description.
LOADABORT
No description.
LOADCOMMIT
No description.
LOADREDIRECT
No description.
LOADSTART
No description.
LOADSTOP
No description.
LOSECAPTURE
No description.
LOSTPOINTERCAPTURE
No description.
MESSAGE
No description.
MOUSEDOWN
No description.
MOUSEENTER
No description.
MOUSELEAVE
No description.
MOUSEMOVE
No description.
MOUSEOUT
No description.
MOUSEOVER
No description.
MOUSEUP
No description.
MSGESTURECHANGE
No description.
MSGESTUREEND
No description.
MSGESTUREHOLD
No description.
MSGESTURESTART
No description.
MSGESTURETAP
No description.
MSGOTPOINTERCAPTURE
No description.
MSINERTIASTART
No description.
MSLOSTPOINTERCAPTURE
No description.
MSPOINTERCANCEL
No description.
MSPOINTERDOWN
No description.
MSPOINTERENTER
No description.
MSPOINTERHOVER
No description.
MSPOINTERLEAVE
No description.
MSPOINTERMOVE
No description.
MSPOINTEROUT
No description.
MSPOINTEROVER
No description.
MSPOINTERUP
No description.
OFFLINE
No description.
ONLINE
No description.
ORIENTATIONCHANGE
No description.
PAGEHIDE
No description.
PAGESHOW
No description.
PASTE
No description.
POINTERCANCEL
No description.
POINTERDOWN
No description.
POINTERENTER
No description.
POINTERLEAVE
No description.
POINTERMOVE
No description.
POINTEROUT
No description.
POINTEROVER
No description.
POINTERUP
No description.
POPSTATE
No description.
PROPERTYCHANGE
No description.
READYSTATECHANGE
No description.
RESIZE
No description.
RESPONSIVE
No description.
RIGHTCLICK
No description.
SCROLL
No description.
SELECT
No description.
SELECTSTART
No description.
SIZECHANGED
No description.
STORAGE
No description.
SUBMIT
No description.
TEXTINPUT
No description.
TOUCHCANCEL
No description.
TOUCHEND
No description.
TOUCHMOVE
No description.
TOUCHSTART
No description.
TRANSITIONEND
No description.
UNLOAD
No description.
UNRESPONSIVE
No description.
VISIBILITYCHANGE
No description.
Code »
goog.events.KeyCodes :
Key codes for common characters. This list is not localized and therefore some of the key codes are not correct for non US keyboard layouts. See comments below.
Constants:
A
No description.
ALT
No description.
APOSTROPHE
No description.
B
No description.
BACKSLASH
No description.
BACKSPACE
No description.
C
No description.
CAPS_LOCK
No description.
CLOSE_SQUARE_BRACKET
No description.
COMMA
No description.
CONTEXT_MENU
No description.
CTRL
No description.
D
No description.
DASH
No description.
DELETE
No description.
DOWN
No description.
E
No description.
EIGHT
No description.
END
No description.
ENTER
No description.
EQUALS
No description.
ESC
No description.
F10
No description.
F11
No description.
F12
No description.
F1
No description.
F2
No description.
F3
No description.
F4
No description.
F5
No description.
F6
No description.
F7
No description.
F8
No description.
F9
No description.
F
No description.
FF_DASH
No description.
FF_EQUALS
No description.
FF_SEMICOLON
No description.
FIRST_MEDIA_KEY
No description.
FIVE
No description.
FOUR
No description.
G
No description.
H
No description.
HOME
No description.
I
No description.
INSERT
No description.
J
No description.
K
No description.
L
No description.
LAST_MEDIA_KEY
No description.
LEFT
No description.
M
No description.
MAC_ENTER
No description.
MAC_FF_META
No description.
MAC_WK_CMD_LEFT
No description.
MAC_WK_CMD_RIGHT
No description.
META
No description.
N
No description.
NINE
No description.
NUMLOCK
No description.
NUM_CENTER
No description.
NUM_DIVISION
No description.
NUM_EIGHT
No description.
NUM_FIVE
No description.
NUM_FOUR
No description.
NUM_MINUS
No description.
NUM_MULTIPLY
No description.
NUM_NINE
No description.
NUM_ONE
No description.
NUM_PERIOD
No description.
NUM_PLUS
No description.
NUM_SEVEN
No description.
NUM_SIX
No description.
NUM_THREE
No description.
NUM_TWO
No description.
NUM_ZERO
No description.
O
No description.
ONE
No description.
OPEN_SQUARE_BRACKET
No description.
P
No description.
PAGE_DOWN
No description.
PAGE_UP
No description.
PAUSE
No description.
PERIOD
No description.
PHANTOM
No description.
PRINT_SCREEN
No description.
Q
No description.
QUESTION_MARK
No description.
R
No description.
RIGHT
No description.
S
No description.
SCROLL_LOCK
No description.
SEMICOLON
No description.
SEVEN
No description.
SHIFT
No description.
SINGLE_QUOTE
No description.
SIX
No description.
SLASH
No description.
SPACE
No description.
T
No description.
TAB
No description.
THREE
No description.
TILDE
No description.
TWO
No description.
U
No description.
UP
No description.
V
No description.
W
No description.
WIN_IME
No description.
WIN_KEY
No description.
WIN_KEY_FF_LINUX
No description.
WIN_KEY_RIGHT
No description.
X
No description.
Y
No description.
Z
No description.
ZERO
No description.
firesKeyPressEvent
No description.
isCharacterKey
No description.
isTextModifyingKeyEvent
No description.
normalizeGeckoKeyCode
No description.
normalizeKeyCode
No description.
normalizeMacWebKitKeyCode
No description.
Code »
goog.events.KeyNames :
Key names for common characters. These should be used with keyup/keydown events, since the .keyCode property on those is meant to indicate the *physical key* the user held down on the keyboard. Hence the mapping uses only the unshifted version of each key (e.g. no '#', since that's shift+3). Keypress events on the other hand generate (mostly) ASCII codes since they correspond to *characters* the user typed. For further reference: http://unixpapa.com/js/key.html This list is not localized and therefore some of the key codes are not correct for non-US keyboard layouts.
Constants:
100
No description.
101
No description.
102
No description.
103
No description.
104
No description.
105
No description.
106
No description.
107
No description.
109
No description.
110
No description.
111
No description.
112
No description.
113
No description.
114
No description.
115
No description.
116
No description.
117
No description.
118
No description.
119
No description.
120
No description.
121
No description.
122
No description.
123
No description.
13
No description.
16
No description.
17
No description.
186
No description.
187
No description.
188
No description.
189
No description.
18
No description.
190
No description.
191
No description.
192
No description.
19
No description.
20
No description.
219
No description.
220
No description.
221
No description.
222
No description.
224
No description.
27
No description.
32
No description.
33
No description.
34
No description.
35
No description.
36
No description.
37
No description.
38
No description.
39
No description.
40
No description.
45
No description.
46
No description.
48
No description.
49
No description.
50
No description.
51
No description.
52
No description.
53
No description.
54
No description.
55
No description.
56
No description.
57
No description.
59
No description.
61
No description.
65
No description.
66
No description.
67
No description.
68
No description.
69
No description.
70
No description.
71
No description.
72
No description.
73
No description.
74
No description.
75
No description.
76
No description.
77
No description.
78
No description.
79
No description.
80
No description.
81
No description.
82
No description.
83
No description.
84
No description.
85
No description.
86
No description.
87
No description.
88
No description.
89
No description.
8
No description.
90
No description.
93
No description.
96
No description.
97
No description.
98
No description.
99
No description.
9
No description.
Code »

Global Functions

goog.events.dispatchEvent(srce) boolean
Dispatches an event (or event like object) and calls all listeners listening for events of this type. The type of the event is decided by the type property on the event object. If any of the listeners returns false OR calls preventDefault then this function will return false. If one of the capture listeners calls stopPropagation, then the bubble listeners won't fire.
Arguments:
src : goog.events.Listenable
The event target.
e : goog.events.EventLike
Event object.
Returns: boolean  If anyone called preventDefault on the event object (or if any of the handlers returns false) this will also return false. If there are no handlers, or if all handlers return true, this returns true.
code »
goog.events.expose(e) string
Provides a nice string showing the normalized event objects public members
Arguments:
e : Object
Event Object.
Returns: string  String of the public members of the normalized event object.
code »
goog.events.fireListener(listenereventObject) boolean
Fires a listener with a set of arguments
Arguments:
listener : goog.events.Listener
The listener object to call.
eventObject : Object
The event object to pass to the listener.
Returns: boolean  Result of listener.
code »
goog.events.fireListeners(objtypecaptureeventObject) boolean
Fires an object's listeners of a particular type and phase
Arguments:
obj : Object
Object whose listeners to call.
type : string | !goog.events.EventId
Event type.
capture : boolean
Which event phase.
eventObject : Object
Event object to be passed to listener.
Returns: boolean  True if all listeners returned true else false.
code »
goog.events.fireListeners_(objtypecaptureeventObject) boolean
Fires an object's listeners of a particular type and phase.
Arguments:
obj : Object
Object whose listeners to call.
type : string | !goog.events.EventId
Event type.
capture : boolean
Which event phase.
eventObject : Object
Event object to be passed to listener.
Returns: boolean  True if all listeners returned true else false.
code »
goog.events.getListener(srctypeopt_captopt_handler) goog.events.ListenableKey
Gets the goog.events.Listener for the event or null if no such listener is in use.
Arguments:
src : EventTarget | goog.events.Listenable
The target from which to get listeners.
type : ?string | !goog.events.EventId.<EVENTOBJ>
The type of the event.
: function(EVENTOBJ):? | ?{handleEvent:function():?
No description.
opt_capt : boolean=
In DOM-compliant browsers, this determines whether the listener is fired during the capture or bubble phase of the event.
opt_handler : Object=
Element in whose scope to call the listener.
Returns: goog.events.ListenableKey  the found listener or null if not found.
code »
goog.events.getListenerMap_(src) goog.events.ListenerMap
No description.
Arguments:
src : EventTarget
The source object.
Returns: goog.events.ListenerMap  A listener map for the given source object, or null if none exists.
code »
goog.events.getListeners(objtypecapture) Array.<goog.events.Listener>
Gets the listeners for a given object, type and capture phase.
Arguments:
obj : Object
Object to get listeners for.
type : string | !goog.events.EventId
Event type.
capture : boolean
Capture phase?.
Returns: Array.<goog.events.Listener>  Array of listener objects.
code »
goog.events.getOnString_(type) string
Returns a string with on prepended to the specified type. This is used for IE which expects "on" to be prepended. This function caches the string in order to avoid extra allocations in steady state.
Arguments:
type : string
Event type.
Returns: string  The type string with 'on' prepended.
code »
goog.events.getProxy() !Function
Helper function for returning a proxy function.
Returns: !Function  A new or reused function object.
code »
goog.events.getTotalListenerCount() number
This returns estimated count, now that Closure no longer stores a central listener registry. We still return an estimation to keep existing listener-related tests passing. In the near future, this function will be removed. Gets the total number of listeners currently in the system.
Returns: number  Number of listeners.
code »
goog.events.getUniqueId(identifier) string
Creates a unique event id.
Arguments:
identifier : string
The identifier.
Returns: string  A unique identifier.
code »
goog.events.getVendorPrefixedName_(eventName) string
Returns a prefixed event name for the current browser.
Arguments:
eventName : string
The name of the event.
Returns: string  The prefixed event name.
code »
goog.events.handleBrowserEvent_(listeneropt_evt) boolean
Handles an event and dispatches it to the correct listeners. This function is a proxy for the real listener the user specified.
Arguments:
listener : goog.events.Listener
The listener object.
opt_evt : Event=
Optional event object that gets passed in via the native event handlers.
Returns: boolean  Result of the event handler.
code »
testProtectBrowserEventEntryPoint&goog.events.handleBrowserEvent_()
No description.
code »
goog.events.hasListener(objopt_typeopt_capture) boolean
Returns whether an event target has any active listeners matching the specified signature. If either the type or capture parameters are unspecified, the function will match on the remaining criteria.
Arguments:
obj : EventTarget | goog.events.Listenable
Target to get listeners for.
opt_type : string | !goog.events.EventId=
Event type.
opt_capture : boolean=
Whether to check for capture or bubble-phase listeners.
Returns: boolean  Whether an event target has one or more listeners matching the requested type and/or capture phase.
code »
goog.events.isMarkedIeEvent_(e) boolean
This is used to check if an IE event has already been handled by the Closure system so we do not do the Closure pass twice for a bubbling event.
Arguments:
e : Event
The IE browser event.
Returns: boolean  True if the event object has been marked.
code »
goog.events.listen(srctypeopt_captopt_handler) goog.events.Key
Adds an event listener for a specific event on a native event target (such as a DOM element) or an object that has implemented goog.events.Listenable. A listener can only be added once to an object and if it is added again the key for the listener is returned. Note that if the existing listener is a one-off listener (registered via listenOnce), it will no longer be a one-off listener after a call to listen().
Arguments:
src : EventTarget | goog.events.Listenable
The node to listen to events on.
type : string | Array.<string> |  !goog.events.EventId.<EVENTOBJ> | !Array.<!goog.events.EventId.<EVENTOBJ>>
Event type or array of event types.
: function(this:T, EVENTOBJ):? | ?{handleEvent:function():?
No description.
opt_capt : boolean=
Whether to fire in capture phase (defaults to false).
opt_handler : T=
Element in whose scope to call the listener.
Returns: goog.events.Key  Unique key for the listener.
code »
goog.events.listenOnce(srctypeopt_captopt_handler) goog.events.Key
Adds an event listener for a specific event on a native event target (such as a DOM element) or an object that has implemented goog.events.Listenable. After the event has fired the event listener is removed from the target. If an existing listener already exists, listenOnce will do nothing. In particular, if the listener was previously registered via listen(), listenOnce() will not turn the listener into a one-off listener. Similarly, if there is already an existing one-off listener, listenOnce does not modify the listeners (it is still a once listener).
Arguments:
src : EventTarget | goog.events.Listenable
The node to listen to events on.
type : string | Array.<string> |  !goog.events.EventId.<EVENTOBJ> | !Array.<!goog.events.EventId.<EVENTOBJ>>
Event type or array of event types.
: function(this:T, EVENTOBJ):? | ?{handleEvent:function():?
No description.
opt_capt : boolean=
Fire in capture phase?.
opt_handler : T=
Element in whose scope to call the listener.
Returns: goog.events.Key  Unique key for the listener.
code »
goog.events.listenWithWrapper(srcwrapperopt_captopt_handler)
Adds an event listener with a specific event wrapper on a DOM Node or an object that has implemented goog.events.Listenable. A listener can only be added once to an object.
Arguments:
src : EventTarget | goog.events.Listenable
The target to listen to events on.
wrapper : goog.events.EventWrapper
Event wrapper to use.
: ?function(this:T, ):? | ?{handleEvent:function():?
No description.
opt_capt : boolean=
Whether to fire in capture phase (defaults to false).
opt_handler : T=
Element in whose scope to call the listener.
code »
goog.events.listen_(srctypelistenercallOnceopt_captopt_handler) goog.events.ListenableKey
Adds an event listener for a specific event on a native event target. A listener can only be added once to an object and if it is added again the key for the listener is returned. Note that a one-off listener will not change an existing listener, if any. On the other hand a normal listener will change existing one-off listener to become a normal listener.
Arguments:
src : EventTarget
The node to listen to events on.
type : string | !goog.events.EventId
Event type.
listener : !Function
Callback function.
callOnce : boolean
Whether the listener is a one-off listener or otherwise.
opt_capt : boolean=
Whether to fire in capture phase (defaults to false).
opt_handler : Object=
Element in whose scope to call the listener.
Returns: goog.events.ListenableKey  Unique key for the listener.
code »
goog.events.markIeEvent_(e)
This is used to mark the IE event object so we do not do the Closure pass twice for a bubbling event.
Arguments:
e : Event
The IE browser event.
code »
goog.events.protectBrowserEventEntryPoint(errorHandler)
Installs exception protection for the browser event entry point using the given error handler.
Arguments:
errorHandler : goog.debug.ErrorHandler
Error handler with which to protect the entry point.
code »
goog.events.removeAll(opt_objopt_type) number
Removes all listeners from an object. You can also optionally remove listeners of a particular type.
Arguments:
opt_obj : Object=
Object to remove listeners from. Not specifying opt_obj is now DEPRECATED (it used to remove all registered listeners).
opt_type : string | !goog.events.EventId=
Type of event to remove. Default is all types.
Returns: number  Number of listeners removed.
code »
goog.events.removeAllNativeListeners() number
This doesn't do anything, now that Closure no longer stores a central listener registry. Removes all native listeners registered via goog.events. Native listeners are listeners on native browser objects (such as DOM elements). In particular, goog.events.Listenable and goog.events.EventTarget listeners will NOT be removed.
Returns: number  Number of listeners removed.
code »
goog.events.unlisten(srctypeopt_captopt_handler) ?boolean
Removes an event listener which was added with listen().
Arguments:
src : EventTarget | goog.events.Listenable
The target to stop listening to events on.
type : string | Array.<string> |  !goog.events.EventId.<EVENTOBJ> | !Array.<!goog.events.EventId.<EVENTOBJ>>
Event type or array of event types to unlisten to.
: ?function():? | ?{handleEvent:function():?
No description.
opt_capt : boolean=
In DOM-compliant browsers, this determines whether the listener is fired during the capture or bubble phase of the event.
opt_handler : Object=
Element in whose scope to call the listener.
Returns: ?boolean  indicating whether the listener was there to remove.
code »
goog.events.unlistenByKey(key) boolean
Removes an event listener which was added with listen() by the key returned by listen().
Arguments:
key : goog.events.Key
The key returned by listen() for this event listener.
Returns: boolean  indicating whether the listener was there to remove.
code »
goog.events.unlistenWithWrapper(srcwrapperopt_captopt_handler)
Removes an event listener which was added with listenWithWrapper().
Arguments:
src : EventTarget | goog.events.Listenable
The target to stop listening to events on.
wrapper : goog.events.EventWrapper
Event wrapper to use.
: ?function():? | ?{handleEvent:function():?
No description.
opt_capt : boolean=
In DOM-compliant browsers, this determines whether the listener is fired during the capture or bubble phase of the event.
opt_handler : Object=
Element in whose scope to call the listener.
code »
goog.events.wrapListener(listener) !Function
No description.
Arguments:
listener : Object | Function
The listener function or an object that contains handleEvent method.
Returns: !Function  Either the original function or a function that calls obj.handleEvent. If the same listener is passed to this function more than once, the same function is guaranteed to be returned.
code »

Global Properties

goog.events.ActionHandlerTest :
No description.
Code »
goog.events.BrowserEventTest :
No description.
Code »
goog.events.CAPTURE_SIMULATION_MODE :
No description.
Code »
goog.events.EventHandlerTest :
No description.
Code »
goog.events.EventLike :
A typedef for event like objects that are dispatchable via the goog.events.dispatchEvent function. strings are treated as the type for a goog.events.Event. Objects are treated as an extension of a new goog.events.Event with the type property of the object being used as the type of the Event.
Code »
goog.events.EventTargetGoogEventsTest :
No description.
Code »
goog.events.EventTargetTest :
No description.
Code »
goog.events.EventTargetW3CTest :
No description.
Code »
goog.events.EventTest :
No description.
Code »
goog.events.FileDropHandlerTest :
No description.
Code »
goog.events.ImeHandlerTest :
No description.
Code »
goog.events.InputHandlerTest :
No description.
Code »
goog.events.Key :
No description.
Code »
goog.events.KeyCodesTest :
No description.
Code »
goog.events.KeyEventTest :
No description.
Code »
goog.events.LISTENER_MAP_PROP_ :
Property name on a native event target for the listener map associated with the event target.
Code »
goog.events.LISTENER_WRAPPER_PROP_ :
Expando property for listener function wrapper for Object with handleEvent.
Code »
goog.events.ListenableTest :
No description.
Code »
goog.events.ListenableType :
No description.
Code »
goog.events.ListenerMapTest :
No description.
Code »
goog.events.MouseWheelHandlerTest :
No description.
Code »
goog.events.OnlineHandlerTest :
No description.
Code »
goog.events.PasteHandlerTest :
No description.
Code »
goog.events.actionEventWrapper : goog.events.ActionEventWrapper_
Singleton instance of ActionEventWrapper_.
Code »
goog.events.actionEventWrapperTest :
No description.
Code »
goog.events.eventTargetTester :
No description.
Code »
goog.events.listenerCountEstimate_ :
Estimated count of total native listeners.
Code »
goog.events.listeners_ :
Container for storing event listeners and their proxies TODO(user): Remove this when all external usage is purged. goog.events no longer use goog.events.listeners_ for anything meaningful.
Code »
goog.events.onStringMap_ :
Map of computed "on" strings for IE event types. Caching this removes an extra object allocation in goog.events.listen which improves IE6 performance.
Code »
goog.events.onString_ :
String used to prepend to IE event types.
Code »
goog.events.uniqueIdCounter_ :
Counter to create unique event ids.
Code »

Package events

Package Reference