Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 500 Bytes

debug_api.md

File metadata and controls

17 lines (15 loc) · 500 Bytes

Debug API

Flight ships with a debug module which can help you trace the sequence of event triggering and binding. By default console logging is turned off, but you can log trigger, on and off events by means of the following console commands:

// log everything
DEBUG.events.logAll();
// only log event triggers
DEBUG.events.logByAction('trigger');
// only log events named 'click' - accepts `*` as wildcard
DEBUG.events.logByName('click');
// log nothing
DEBUG.events.logNone();