DisposableObject Class

File
c1.nav.js
Module
c1.nav
Derived Classes
LayoutBase, LayoutItem

Base class for the disposable objects in dashboardlayout.

The object also provides a set of methods to attach and remove the events on the dom elements.

Methods

Methods

addEventListener

addEventListener(target: EventTarget, type: string, fn: any, capture?: boolean): void

Adds an event listener to an element owned by this Control.

The control keeps a list of attached listeners and their handlers, making it easier to remove them when the control is disposed (see the dispose and removeEventListener methods).

Failing to remove event listeners may cause memory leaks.

Parameters
Returns
void

dispose

dispose(fullDispose?: boolean): void

Disposes the object.

Parameters
Returns
void

removeEventListener

removeEventListener(target?: EventTarget, type?: string, fn?: any, capture?: boolean): number

Removes one or more event listeners attached to elements owned by this Control.

Parameters
Returns
number