Partager via


WinJS.Binding.observableMixin object

Provides functions that can make an object observable.

Syntax

var object = new WinJS.Binding.observableMixin();

Members

The observableMixin object has these types of members:

  • Methods

Methods

The observableMixin object has these methods.

Method Description
bind

Links the specified action to the property specified in the name parameter. This function is invoked when the value of the property may have changed. It is not guaranteed that the action will be called only when a value has actually changed, nor is it guaranteed that the action will be called for every value change. The implementation of this function coalesces change notifications, such that multiple updates to a property value may result in only a single call to the specified action.

notify

Notifies listeners that a property value was updated.

unbind

Removes one or more listeners from the notification list for a given property.

 

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding