Sha256: 43248abb838a92c6812020e4b74565fa6b494179f778fc767215b4b2598a7566
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
//Driver side interface /////////////////////////////////////////////////////////////////////////////////////////////////////////// function if_hook_event(name, info) { <% if @debug %> if_hook_spec_dump_rcvd_events_log.push({name: name, info: info}); <% end %> //Call the appropriate registered handler if (hookEventHandlers[name] !== undefined) { hookEventHandlers[name](info); } } <% if @debug %> //Track all events sent to if_hook_event var if_hook_spec_dump_rcvd_events_log = [] function if_hook_spec_dump_rcvd_events() { int_dispatch([1, "if_hook_spec_dump_rcvd_events_res", if_hook_spec_dump_rcvd_events_log]); } <% end %> /////////////////////////////////////////////////////////////////////////////////////////////////////////// //User helpers /////////////////////////////////////////////////////////////////////////////////////////////////////////// var hookEventHandlers = {}; function onHookEvent(eventName, handler) { hookEventHandlers[eventName] = handler; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.102 | app/drivers/chrome/src/hook.js |
flok-0.0.101 | app/drivers/chrome/src/hook.js |