Commit b4d3ba8e authored by Sven Franck's avatar Sven Franck

jslint pass removeCommand.js

parent 5779a7ff
var removeCommand = function(spec, my) {
/*jslint indent: 2, maxlen: 80, sloppy: true */
/*global command: true */
var removeCommand = function (spec, my) {
var that = command(spec, my);
spec = spec || {};
my = my || {};
// Attributes //
// Methods //
that.getLabel = function() {
that.getLabel = function () {
return 'remove';
};
that.validateState = function() {
if (!(typeof that.getDocId() === "string" && that.getDocId() !== "")) {
that.validateState = function () {
if (!(typeof that.getDocId() === "string" && that.getDocId() !==
"")) {
that.error({
"status": 20,
"statusText": "Document Id Required",
......@@ -34,8 +37,8 @@ var removeCommand = function(spec, my) {
return true;
};
that.executeOn = function(storage) {
storage.remove (that);
that.executeOn = function (storage) {
storage.remove(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