Class Index | File Index

Classes


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 Summary
Constructor Attributes Constructor Name and Description
 
new Event.Tracer()
Method Summary
Method Attributes Method Name and Description
<static>  
Event.Tracer.findTracer()
 
 
 
 
 
registerPublisher(event_publisher)
 
<static>  
Event.Tracer.startTrace()
<static>  
Event.Tracer.stopTrace()
 
 
unregisterPublisher(event_publisher)
Constructor Detail
new Event.Tracer()
Method Detail
<static> Event.Tracer.findTracer()

initialize()

onEventDispatched(evt)
Parameters:
evt

onEventListenerAdded(evt)
Parameters:
evt

onEventListenerRemoved(evt)
Parameters:
evt

registerPublisher(event_publisher)
Parameters:
event_publisher

shutdown()

<static> Event.Tracer.startTrace()

<static> Event.Tracer.stopTrace()

traceEvent(evt)
Parameters:
evt

unregisterPublisher(event_publisher)
Parameters:
event_publisher

Documentation generated by JsDoc Toolkit 2.0.b2 on Thu Feb 21 2008 20:16:56 GMT+0100 (CET)