Promise.addEventListener method

6 out of 9 rated this helpful - Rate this topic

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

Base.js

See also

Promise

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.