Class Event.Tracer
Event.Tracer
Singleton Object: Event.Tracer
Description:
provides some minimal event debugging/tracing/logging
Event.Tracer is a sort of singleton
Only use Event.Tracer for starting and stopping the event tracing
service, and for acquiring a reference to the live tracing object
(which is returned by both find_tracer and start_trace)
IMPORTANT
You only need to use this file when debugging your custom events.
Requires:
prototype.js
the custom events services provided by event_mixins.js
Usage:
Start up event tracing by calling Event.Tracer.startTrace( viewport )
viewport is a div (or the id of a div) on your page where trace
output will be written
returns: a reference to an instance of Event.Tracer.prototype
(not the singleton)
Kill the tracer (disable tracing in all publishers) with:
Event.Tracer.stopTrace()
Note that you can start the tracer (if it's not already running)
and register your publishers, all in one step, with a call like:
[publisher].toggleEventsTrace()
Defined in: tracer.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
new Event.Tracer()
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Event.Tracer.findTracer()
|
|
onEventDispatched(evt)
|
|
|
onEventListenerAdded(evt)
|
|
|
registerPublisher(event_publisher)
|
|
|
shutdown()
|
|
| <static> |
Event.Tracer.startTrace()
|
| <static> |
Event.Tracer.stopTrace()
|
|
traceEvent(evt)
|
|
|
unregisterPublisher(event_publisher)
|
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- event_publisher
- Parameters:
- evt
- Parameters:
- event_publisher