Class: CUI.Events

Defined in: base/Events/Events.coffee
Inherits: CUI.Element

Overview

Events Inter-"Process"-Communication for CUI

Event.listen type: [ "click", "dblclick" ] node: jQuery Element or CUI DOM Element call: (ev, info) -> selector: jQuery like path selector to filter events

Event.trigger type: "content-resize" node: jQuery Element or CUI DOM Element bubble: set to yes if event should bubble up or down the DOM tree info: info Map, contains eventsEvent for DOMElements and the internal "waits" queue

Event.ignore type: "" node: jQuery or DOM Element

CUIEvents bound to a node will be checked for the existance in the DOM tree prio execution. If they don't exist (after they have been inserted), the CUI.Listener will be deleted.

All events need to be registered or a warning is output at the console.

CUI.Events.registerEvent(options) options are the default options for the event type: bubble: true|false

Variables Summary

defaults =
{
  maxWait: 1500
}
__listeners =
[]
__eventRegistry =
{}

Variable inherited from CUI.Element

uniqueId

Class Method Summary

Inherited Method Summary

Methods inherited from CUI.Element

#getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #initOpts #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOpts #readOptsFromAttr #proxy #destroy #isDestroyed .getOptKeys

Class Method Details

. (void) __getListenersForNode(node)

. (void) __registerListener(listener)

. (void) __getActiveListeners(doc = document)

. (void) unregisterListener(listener)

. (void) wait(_opts)

wait for an event on a node

. (void) listen(_listener)

register a listener @param listener PlainObject or CUI.Listener

. (void) trigger(_event)

. (void) ignore(filter, doc = document)

. (void) dump(filter = {})

. (void) dumpTopLevel()

. (void) hasEventType(type)

. (void) getEventType(type)

returns event info by type

. (void) getEventTypeAliases(type)

. (void) registerEvent(event, allow_array = true)

. (void) __init()

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: