Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stefane Fermigier
jio
Commits
b4d3ba8e
Commit
b4d3ba8e
authored
Jan 10, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint pass removeCommand.js
parent
5779a7ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
39 deletions
+42
-39
src/jio/commands/removeCommand.js
src/jio/commands/removeCommand.js
+42
-39
No files found.
src/jio/commands/removeCommand.js
View file @
b4d3ba8e
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
);
var
that
=
command
(
spec
,
my
);
spec
=
spec
||
{};
spec
=
spec
||
{};
my
=
my
||
{};
my
=
my
||
{};
// Attributes //
// Attributes //
// Methods //
// Methods //
that
.
getLabel
=
function
()
{
that
.
getLabel
=
function
()
{
return
'
remove
'
;
return
'
remove
'
;
};
};
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,8 +37,8 @@ var removeCommand = function(spec, my) {
...
@@ -34,8 +37,8 @@ var removeCommand = function(spec, my) {
return
true
;
return
true
;
};
};
that
.
executeOn
=
function
(
storage
)
{
that
.
executeOn
=
function
(
storage
)
{
storage
.
remove
(
that
);
storage
.
remove
(
that
);
};
};
return
that
;
return
that
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment