Commit 3fd058c3 authored by Sven Franck's avatar Sven Franck

correct typos

parent 90b51d10
...@@ -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
......
...@@ -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) );
}); });
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment