Registers the listener for the specified event on all the elements in the collection.
Syntax
queryCollection.listen(eventType, listener, capture);
Parameters
- eventType
-
Type: string
The name of the event.
- listener
-
Type: function
The event handler function to be called when the event occurs.
- capture
-
Type: Boolean
true if capture == true is to be passed to addEventListener; otherwise, false.
Return value
This method does not return a value.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
WinJS.Utilities |
|
Library |
|
See also
Build date: 12/5/2012