WinJS.Binding.observableMixin object

Applies to Windows and Windows Phone

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

The observableMixin object has these methods.

MethodDescription
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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

 

 

Show:
© 2014 Microsoft. All rights reserved.