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
preetwinder
jio
Commits
3fd058c3
Commit
3fd058c3
authored
Dec 21, 2012
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct typos
parent
90b51d10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/jio.dummystorages.js
src/jio.dummystorages.js
+1
-1
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+4
-4
No files found.
src/jio.dummystorages.js
View file @
3fd058c3
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
that
.
success
({
that
.
success
({
ok
:
true
,
ok
:
true
,
id
:
command
.
getDocId
(),
id
:
command
.
getDocId
(),
rev
:
generateRevision
(
command
,
"
get
"
,
true
)
rev
:
generateRevision
(
command
,
"
remove
"
,
true
)
});
});
},
100
);
},
100
);
};
// end remove
};
// end remove
...
...
src/jio.storage/localstorage.js
View file @
3fd058c3
...
@@ -217,7 +217,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -217,7 +217,7 @@ var newLocalStorage = function (spec, my) {
return
priv
.
manageOptions
(
return
priv
.
manageOptions
(
{
ok
:
true
,
id
:
document_id
,
rev
:
document_rev
},
command
,
doc
);
{
ok
:
true
,
id
:
document_id
,
rev
:
document_rev
},
command
,
doc
);
}
}
;
// ===================== overrides ======================
// ===================== overrides ======================
that
.
serialized
=
function
()
{
that
.
serialized
=
function
()
{
...
@@ -266,7 +266,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -266,7 +266,7 @@ var newLocalStorage = function (spec, my) {
setTimeout
(
function
()
{
setTimeout
(
function
()
{
var
docid
=
command
.
getDocId
(),
var
docid
=
command
.
getDocId
(),
path
=
'
jio/local/
'
+
priv
.
username
+
'
/
'
+
path
=
'
jio/local/
'
+
priv
.
username
+
'
/
'
+
priv
.
applicationname
+
'
/
'
+
docid
priv
.
applicationname
+
'
/
'
+
docid
,
doc
=
localstorage
.
getItem
(
path
);
doc
=
localstorage
.
getItem
(
path
);
if
(
!
doc
)
{
if
(
!
doc
)
{
...
@@ -289,7 +289,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -289,7 +289,7 @@ var newLocalStorage = function (spec, my) {
*/
*/
that
.
_putAttachment
=
function
(
command
)
{
that
.
_putAttachment
=
function
(
command
)
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
that
.
success
(
priv
.
setDocument
(
command
)
,
'
put
'
);
that
.
success
(
priv
.
setDocument
(
command
,
'
put
'
);
});
});
};
};
...
@@ -322,7 +322,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -322,7 +322,7 @@ var newLocalStorage = function (spec, my) {
*/
*/
that
.
_remove
=
function
(
command
)
{
that
.
_remove
=
function
(
command
)
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
localStorage
.
deleteItem
(
command
.
docId
)
);
that
.
success
(
priv
.
deleteDocument
(
command
)
);
});
});
};
};
...
...
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