Sha256: b13fbf5a45f172103cdf2e8fb78055ab30708f5f1cda38c3fb6f92ae863e1589

Contents?: true

Size: 788 Bytes

Versions: 57

Compression:

Stored size: 788 Bytes

Contents

//Event handler table
evt = {};

//Event defer queue
edefer_q = [];

function int_event(ep, event_name, info) {
  var f = evt[ep];
  if (f != undefined) {
    f(ep, event_name, info);
    return true;
  } else {
    return false;
  }
}

function reg_evt(ep, f) {
  evt[ep] = f;
}

function dereg_evt(ep) {
  delete evt[ep];
}

function int_event_defer(ep, ename, info) {
  edefer_q.push(ep);
  edefer_q.push(ename);
  edefer_q.push(info);
}

//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

57 entries across 57 versions & 1 rubygems

Version Path
flok-0.0.100 app/kern/mod/event.js
flok-0.0.99 app/kern/mod/event.js
flok-0.0.98 app/kern/mod/event.js
flok-0.0.97 app/kern/mod/event.js
flok-0.0.96 app/kern/mod/event.js
flok-0.0.95 app/kern/mod/event.js
flok-0.0.94 app/kern/mod/event.js
flok-0.0.93 app/kern/mod/event.js
flok-0.0.92 app/kern/mod/event.js
flok-0.0.91 app/kern/mod/event.js
flok-0.0.90 app/kern/mod/event.js
flok-0.0.89 app/kern/mod/event.js
flok-0.0.88 app/kern/mod/event.js
flok-0.0.87 app/kern/mod/event.js
flok-0.0.86 app/kern/mod/event.js
flok-0.0.85 app/kern/mod/event.js
flok-0.0.84 app/kern/mod/event.js
flok-0.0.83 app/kern/mod/event.js
flok-0.0.82 app/kern/mod/event.js
flok-0.0.81 app/kern/mod/event.js