This topic has not yet been rated - Rate this topic

mixin.bind method

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.

Syntax


var function = mixin.bind(name, action);

Parameters

name

Type: String

The name of the property to which to bind the action.

action

Type: Object

The function to invoke asynchronously when the property may have changed.

Return value

Type: Function

This object is returned.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.Binding

Library

Base.js

See also

mixin

 

 

Build date: 12/5/2012

© 2013 Microsoft. All rights reserved.