Skip to content

bindMethods

bindMethods(instance, …methodNames): void

A helper method for binding methods to the class instance

Parameters

instance: unknown

The instance of the class where the methods are to be bound

• …methodNames: string[]

The names of the methods to be bound

Returns

void

Example

this.bindMethods('onResize', 'onUpdate');

Source

src/utils/FrameworkUtils.ts:12