Adds an event listener for the promise.
Syntax
promise.addEventListener(type, listener, capture);
Parameters
- type
-
Type: String
The type (name) of the event.
- listener
-
Type: Function
The listener to invoke when the event is raised.
- capture
-
Type: Boolean
true to initiate capture, otherwise false.
Return value
This method does not return a value.
Remarks
WinJS.Promise.addEventListener("type", listener);
Requirements
|
Namespace |
WinJS |
|---|---|
|
Library |
|
See also
Build date: 12/5/2012