Commit dda2573d authored by Sven Franck's avatar Sven Franck

jslint pass postCommand.js (2indent)

parent 27892c94
var postCommand = function(spec, my) { /*jslint indent: 2, maxlen: 80, sloppy: true */
var that = command(spec, my); /*global command: true */
spec = spec || {}; var postCommand = function (spec, my) {
my = my || {}; var that = command(spec, my);
// Attributes //
var priv = {};
// Methods // spec = spec || {};
that.getLabel = function() { my = my || {};
return 'post';
};
that.validateState = function () { // Methods //
if (typeof that.getAttachmentId() !== "undefined") { that.getLabel = function () {
that.error({ return 'post';
"status": 21, };
"statusText": "Invalid Document Id",
"error": "invalid_document_id",
"message": "The document id contains '/' characters "+
"which are forbidden",
"reason": "Document id contains '/' character(s)"
});
return false;
}
return true;
};
that.executeOn = function(storage) { that.validateState = function () {
storage.post (that); if (that.getAttachmentId() !== undefined) {
}; that.error({
"status": 21,
return that; "statusText": "Invalid Document Id",
}; "error": "invalid_document_id",
"message": "The document id contains '/' characters " +
"which are forbidden",
"reason": "Document id contains '/' character(s)"
});
return false;
}
return true;
};
that.executeOn = function (storage) {
storage.post(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