Type.getBaseMethod Method

Returns the base implementation of a method from the base class of the specified instance.

var methodRefVar = typeInstanceVar.getBaseMethod(instance, name);

Parameters

  • instance
    The instance for which the base method is requested.

  • name
    The name of the method to retrieve as a reference.

Return Value

Returns the base implementation of the name method from the base class of instance, or null if the name method does not exist in instance.

Exceptions

Exception type

Condition

Error.argumentType Function

(Debug) instance is not an instance of the current type.

Remarks

Use the getBaseMethod method to retrieve the base implementation of a method from a specified instance.

A method reference is useful for invoking the method of one class from another class by using the ECMAScript Function.call method.

See Also

Reference

Type Class