Sha256: 0ae3b6a75fa4d187f18015139ea776184bed261921cb6f91e78a0eb667d23579
Contents?: true
Size: 850 Bytes
Versions: 2
Compression:
Stored size: 850 Bytes
Contents
//Event handler table evt = {}; function int_event(ep, event_name, info) { <% if @debug %> if (typeof ep == 'string' || ep instanceof String) { console.log("WARN: received ep of '" + ep + "' that was a string!!!"); console.log("name: " + name); console.log("info: " + JSON.stringify(info)); } <% end %> var f = evt[ep]; if (f != undefined) { f(ep, event_name, info); } } function reg_evt(ep, f) { evt[ep] = f; } function dereg_evt(ep) { delete evt[ep]; } //Spec helpers //////////////////////////////////////////////////////////////// function spec_event_handler(ep, event_name, info) { SEND("main", "if_event", ep, event_name, info); } reg_evt(3848392, spec_event_handler); function int_spec_event_dereg() { dereg_evt(3848392); } ////////////////////////////////////////////////////////////////
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.33 | app/kern/mod/event.js |
flok-0.0.32 | app/kern/mod/event.js |