Commit 2534a5e1 authored by Tristan Cavelier's avatar Tristan Cavelier

jslint pass jobStatus.js

parent 2414744a
var jobStatus = function(spec, my) { /*jslint indent: 2, maxlen: 80, sloppy: true */
var that = {}; /*global jobStatus: true */
spec = spec || {}; var jobStatus = function (spec, my) {
my = my || {}; var that = {};
// Attributes // spec = spec || {};
// Methods // my = my || {};
that.getLabel = function() { // Attributes //
return 'job status'; // Methods //
}; that.getLabel = function () {
return 'job status';
};
that.canStart = function() {}; that.canStart = function () {};
that.canRestart = function() {}; that.canRestart = function () {};
that.serialized = function() { that.serialized = function () {
return {label:that.getLabel()}; return {"label": that.getLabel()};
}; };
that.isWaitStatus = function() { that.isWaitStatus = function () {
return false; return false;
}; };
that.isDone = function() { that.isDone = function () {
return false; return false;
}; };
return that; return that;
}; };
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