WinJS.Binding.oneTime function

Sets the destination property to the value of the source property.

Syntax

var object = WinJS.Binding.oneTime(source, sourceProperties, dest, destProperties);

Parameters

  • source
    Type: object

    The source object.

  • sourceProperties
    Type: object

    The path on the source object to the source property.

  • dest
    Type: object

    The destination object.

  • destProperties
    Type: object

    The path on the destination object to the destination property.

Return value

Type: Object

An object with a cancel method that is used to coalesce bindings.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding