Type.getBaseMethod Method

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

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

instance

The instance for which the base method is requested.

name

The name of the method to retrieve as a reference.

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.

Exception type

Condition

Error.argumentType Function

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

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.

Show: