Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
Vincent Bechu
jio
Commits
dec4d34f
Commit
dec4d34f
authored
Dec 27, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug from serialized methods: nothing was serialized.
parent
9d7451b2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
24 deletions
+14
-24
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+1
-1
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+1
-1
src/jio.waitstorage.js
src/jio.waitstorage.js
+2
-3
src/jio/commands/command.js
src/jio/commands/command.js
+3
-13
src/jio/storages/storage.js
src/jio/storages/storage.js
+7
-6
No files found.
src/jio.storage/localstorage.js
View file @
dec4d34f
...
...
@@ -72,7 +72,7 @@ var newLocalStorage = function (spec, my) {
};
// ===================== overrides ======================
that
.
s
erialized
=
function
()
{
that
.
s
pecToStore
=
function
()
{
return
{
"
applicationname
"
:
priv
.
applicationname
,
"
username
"
:
priv
.
username
...
...
src/jio.storage/revisionstorage.js
View file @
dec4d34f
...
...
@@ -17,7 +17,7 @@ jIO.addStorageType('revision', function (spec, my) {
priv
.
doctree_suffix
=
"
.revision_tree.json
"
;
priv
.
substorage
=
spec
[
priv
.
substorage_key
];
that
.
s
erialized
=
function
()
{
that
.
s
pecToStore
=
function
()
{
var
o
=
{};
o
[
priv
.
substorage_key
]
=
priv
.
substorage
;
return
o
;
...
...
src/jio.waitstorage.js
View file @
dec4d34f
...
...
@@ -19,9 +19,8 @@
return
''
;
};
var
super_serialized
=
that
.
serialized
;
that
.
serialized
=
function
()
{
var
o
=
super_serialized
();
that
.
specToStore
=
function
()
{
var
o
=
{};
o
.
delay
=
priv
.
delay
;
o
.
storage
=
priv
.
secondstorage_spec
;
o
.
save
=
priv
.
save
;
...
...
src/jio/commands/command.js
View file @
dec4d34f
...
...
@@ -38,11 +38,11 @@ var command = function(spec, my) {
// Methods //
/**
* Returns a serialized version of this command.
* @method s
uper_s
erialized
* @method serialized
* @return {object} The serialized command.
*/
that
.
s
uper_s
erialized
=
function
()
{
var
o
=
that
.
serialized
()
||
{};
that
.
serialized
=
function
()
{
var
o
=
{};
o
[
"
label
"
]
=
that
.
getLabel
();
o
[
"
tried
"
]
=
priv
.
tried
;
o
[
"
doc
"
]
=
that
.
cloneDoc
();
...
...
@@ -50,16 +50,6 @@ var command = function(spec, my) {
return
o
;
};
/**
* Returns a serialized version of this command.
* Override this function.
* @method serialized
* @return {object} The serialized command.
*/
that
.
serialized
=
function
()
{
return
{};
};
/**
* Returns the label of the command.
* @method getLabel
...
...
src/jio/storages/storage.js
View file @
dec4d34f
...
...
@@ -56,19 +56,20 @@ var storage = function(spec, my) {
* @method serialized
* @return {object} The serialized storage.
*/
that
.
s
uper_s
erialized
=
function
()
{
var
o
=
that
.
s
erialized
()
||
{};
that
.
serialized
=
function
()
{
var
o
=
that
.
s
pecToStore
()
||
{};
o
[
"
type
"
]
=
that
.
getType
();
return
o
;
};
/**
* Returns a serialized version of this storage.
* Returns an object containing spec to store on localStorage, in order to
* be restored later if something wrong happen.
* Override this method!
* @method s
erialized
* @return {object} The s
erialized version of this storag
e
* @method s
pecToStore
* @return {object} The s
pec to stor
e
*/
that
.
s
erialized
=
function
()
{
that
.
s
pecToStore
=
function
()
{
return
{};
};
...
...
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