Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 15.0Version 14.0 (current version)Version 13.0Version 12.0Version 11.0Version 10.0Version 2.0Version 1.0 (home page)

On this page

detachDOMEvent

Summary

Detach DOM event handler from element to prevent memory leaks.

Syntax

tavultesoft.keymanweb.util.detachDOMEvent();

Parameters

Pelem
Type: Element
Element from which the event is being detached.
eventName
Type: string
The name of the event, without an 'on' prefix.
handler
Type: function(Object)
The event handler being detached.
useCapture
Type: boolean optional
Set this to true if the event was being captured in the bubbling phase; otherwise, use false or leave this parameter empty.

Return Value

undefined

Description

The fourth argument, useCapture, is optional and will default to false.

See also: tavultesoft.keymanweb.util.attachDOMEvent