Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
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
Hardik Juneja
jio-main
Commits
63ab5185
Commit
63ab5185
authored
Dec 24, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serialized overriding simplified on command.js
parent
8e35d3a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
src/jio/commands/command.js
src/jio/commands/command.js
+15
-4
No files found.
src/jio/commands/command.js
View file @
63ab5185
...
@@ -36,6 +36,20 @@ var command = function(spec, my) {
...
@@ -36,6 +36,20 @@ var command = function(spec, my) {
priv
.
on_going
=
false
;
priv
.
on_going
=
false
;
// Methods //
// Methods //
/**
* Returns a serialized version of this command.
* @method super_serialized
* @return {object} The serialized command.
*/
that
.
super_serialized
=
function
()
{
var
o
=
that
.
serialized
()
||
{};
o
[
"
label
"
]
=
that
.
getLabel
();
o
[
"
tried
"
]
=
priv
.
tried
,
o
[
"
doc
"
]
=
that
.
cloneDoc
(),
o
[
"
option
"
]
=
that
.
cloneOption
()
return
o
;
};
/**
/**
* Returns a serialized version of this command.
* Returns a serialized version of this command.
* Override this function.
* Override this function.
...
@@ -43,10 +57,7 @@ var command = function(spec, my) {
...
@@ -43,10 +57,7 @@ var command = function(spec, my) {
* @return {object} The serialized command.
* @return {object} The serialized command.
*/
*/
that
.
serialized
=
function
()
{
that
.
serialized
=
function
()
{
return
{
label
:
that
.
getLabel
(),
return
{};
tried
:
priv
.
tried
,
doc
:
that
.
cloneDoc
(),
option
:
that
.
cloneOption
()};
};
};
/**
/**
...
...
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