WinJS.Binding.as function

Returns an observable object. This may be an observable proxy for the specified object, an existing proxy, or the specified object itself if it directly supports observation.

Syntax

var object = WinJS.Binding.as(data);

Parameters

  • data
    Type: object

    The object to observe.

Return value

Type: Object

The observable object.

Remarks

For more information about using this method, see the Programmatic binding sample.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding