Commit 2ad51a9b authored by Sven Franck's avatar Sven Franck

jslint pass getCommand.js (2indent)

parent aa6c318c
var getCommand = function(spec, my) { /*jslint indent: 2, maxlen: 80, sloppy: true */
/*global command: true */
var getCommand = function (spec, my) {
var that = command(spec, my); var that = command(spec, my);
spec = spec || {}; spec = spec || {};
my = my || {}; my = my || {};
// Attributes // // Attributes //
// Methods // // Methods //
that.getLabel = function() { that.getLabel = function () {
return 'get'; return 'get';
}; };
that.validateState = function() { that.validateState = function () {
if (!(typeof that.getDocId() === "string" && that.getDocId() !== "")) { if (!(typeof that.getDocId() === "string" &&
that.getDocId() !== "")) {
that.error({ that.error({
"status": 20, "status": 20,
"statusText": "Document Id Required", "statusText": "Document Id Required",
...@@ -34,13 +38,13 @@ var getCommand = function(spec, my) { ...@@ -34,13 +38,13 @@ var getCommand = function(spec, my) {
return true; return true;
}; };
that.executeOn = function(storage) { that.executeOn = function (storage) {
storage.get (that); storage.get(that);
}; };
that.canBeRestored = function() { that.canBeRestored = function () {
return false; return false;
}; };
return that; return that;
}; };
\ No newline at end of file
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