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
Boris Kocherov
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) {
...
@@ -72,7 +72,7 @@ var newLocalStorage = function (spec, my) {
};
};
// ===================== overrides ======================
// ===================== overrides ======================
that
.
s
erialized
=
function
()
{
that
.
s
pecToStore
=
function
()
{
return
{
return
{
"
applicationname
"
:
priv
.
applicationname
,
"
applicationname
"
:
priv
.
applicationname
,
"
username
"
:
priv
.
username
"
username
"
:
priv
.
username
...
...
src/jio.storage/revisionstorage.js
View file @
dec4d34f
...
@@ -17,7 +17,7 @@ jIO.addStorageType('revision', function (spec, my) {
...
@@ -17,7 +17,7 @@ jIO.addStorageType('revision', function (spec, my) {
priv
.
doctree_suffix
=
"
.revision_tree.json
"
;
priv
.
doctree_suffix
=
"
.revision_tree.json
"
;
priv
.
substorage
=
spec
[
priv
.
substorage_key
];
priv
.
substorage
=
spec
[
priv
.
substorage_key
];
that
.
s
erialized
=
function
()
{
that
.
s
pecToStore
=
function
()
{
var
o
=
{};
var
o
=
{};
o
[
priv
.
substorage_key
]
=
priv
.
substorage
;
o
[
priv
.
substorage_key
]
=
priv
.
substorage
;
return
o
;
return
o
;
...
...
src/jio.waitstorage.js
View file @
dec4d34f
...
@@ -19,9 +19,8 @@
...
@@ -19,9 +19,8 @@
return
''
;
return
''
;
};
};
var
super_serialized
=
that
.
serialized
;
that
.
specToStore
=
function
()
{
that
.
serialized
=
function
()
{
var
o
=
{};
var
o
=
super_serialized
();
o
.
delay
=
priv
.
delay
;
o
.
delay
=
priv
.
delay
;
o
.
storage
=
priv
.
secondstorage_spec
;
o
.
storage
=
priv
.
secondstorage_spec
;
o
.
save
=
priv
.
save
;
o
.
save
=
priv
.
save
;
...
...
src/jio/commands/command.js
View file @
dec4d34f
...
@@ -38,11 +38,11 @@ var command = function(spec, my) {
...
@@ -38,11 +38,11 @@ var command = function(spec, my) {
// Methods //
// Methods //
/**
/**
* Returns a serialized version of this command.
* Returns a serialized version of this command.
* @method s
uper_s
erialized
* @method serialized
* @return {object} The serialized command.
* @return {object} The serialized command.
*/
*/
that
.
s
uper_s
erialized
=
function
()
{
that
.
serialized
=
function
()
{
var
o
=
that
.
serialized
()
||
{};
var
o
=
{};
o
[
"
label
"
]
=
that
.
getLabel
();
o
[
"
label
"
]
=
that
.
getLabel
();
o
[
"
tried
"
]
=
priv
.
tried
;
o
[
"
tried
"
]
=
priv
.
tried
;
o
[
"
doc
"
]
=
that
.
cloneDoc
();
o
[
"
doc
"
]
=
that
.
cloneDoc
();
...
@@ -50,16 +50,6 @@ var command = function(spec, my) {
...
@@ -50,16 +50,6 @@ var command = function(spec, my) {
return
o
;
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.
* Returns the label of the command.
* @method getLabel
* @method getLabel
...
...
src/jio/storages/storage.js
View file @
dec4d34f
...
@@ -56,19 +56,20 @@ var storage = function(spec, my) {
...
@@ -56,19 +56,20 @@ var storage = function(spec, my) {
* @method serialized
* @method serialized
* @return {object} The serialized storage.
* @return {object} The serialized storage.
*/
*/
that
.
s
uper_s
erialized
=
function
()
{
that
.
serialized
=
function
()
{
var
o
=
that
.
s
erialized
()
||
{};
var
o
=
that
.
s
pecToStore
()
||
{};
o
[
"
type
"
]
=
that
.
getType
();
o
[
"
type
"
]
=
that
.
getType
();
return
o
;
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!
* Override this method!
* @method s
erialized
* @method s
pecToStore
* @return {object} The s
erialized version of this storag
e
* @return {object} The s
pec to stor
e
*/
*/
that
.
s
erialized
=
function
()
{
that
.
s
pecToStore
=
function
()
{
return
{};
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