Commit 34ac9d0c authored by Tristan Cavelier's avatar Tristan Cavelier

jobReference feature added

parent 3b32d7d6
/*jslint indent: 2, maxlen: 80, sloppy: true, unparam: true */
/*global ReferenceArray */
function enableJobReference(jio, shared, options) {
// creates
// - shared.jobs Object Array
// uses 'job', 'jobEnd' events
shared.jobs = [];
var job_references = new ReferenceArray(shared.jobs);
shared.on('job', function (param) {
job_references.put(param);
});
shared.on('jobEnd', function (param) {
job_references.remove(param);
});
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment