Partager via


WinJS.Binding.notify function

Notifies listeners that a property value was updated.

Syntax

WinJS.Binding.notify(name, newValue, oldValue).done( /* Your success and error handlers */ );

Parameters

  • name
    Type: String

    The name of the property that is being updated.

  • newValue
    Type: String

    The new value for the property.

  • oldValue
    Type: String

    The old value for the property.

Return value

Type: Promise

A promise that is completed when the notifications are complete.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding