Type.createCallback Method
This page is specific to:.NET Framework Version:3.54.0
Type.createCallback Method

Creates a callback method that retains a parameter, given the function to call back and the parameter to pass to it.

public static function createCallback(
    method : Function,
    context : Object
) : Function
Parameters

Parameter

Description

method

The function for which the callback method will be created.

context

The parameter to pass to the function. This parameter can be null, but it cannot be omitted.

Return Value

The callback function.

Remarks

Use this method to set up a handler for a DOM event that retains a parameter. The callback function will be called with the DOM event as the first parameter and context as the second parameter.

See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View