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.60 app/kern/mod/event.js
flok-0.0.57 app/kern/mod/event.js
flok-0.0.56 app/kern/mod/event.js
flok-0.0.55 app/kern/mod/event.js
flok-0.0.54 app/kern/mod/event.js
flok-0.0.53 app/kern/mod/event.js
flok-0.0.52 app/kern/mod/event.js
flok-0.0.51 app/kern/mod/event.js
flok-0.0.50 app/kern/mod/event.js
flok-0.0.49 app/kern/mod/event.js
flok-0.0.48 app/kern/mod/event.js
flok-0.0.47 app/kern/mod/event.js
flok-0.0.45 app/kern/mod/event.js
flok-0.0.44 app/kern/mod/event.js
flok-0.0.43 app/kern/mod/event.js
flok-0.0.42 app/kern/mod/event.js
flok-0.0.41 app/kern/mod/event.js