Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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
Alexandra Rogova
jio_mebibou
Commits
f563c978
Commit
f563c978
authored
Aug 06, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicaterevisionstorage amd compatible now
parent
286266f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
613 additions
and
598 deletions
+613
-598
src/jio.storage/replicaterevisionstorage.js
src/jio.storage/replicaterevisionstorage.js
+613
-598
No files found.
src/jio.storage/replicaterevisionstorage.js
View file @
f563c978
/*jslint indent: 2, maxlen: 80, nomen: true */
/*jslint indent: 2, maxlen: 80, nomen: true */
/*global jIO: true */
/*global jIO, define */
/**
/**
* JIO Replicate Revision Storage.
* JIO Replicate Revision Storage.
* It manages storages that manage revisions and conflicts.
* It manages storages that manage revisions and conflicts.
...
@@ -12,8 +13,16 @@
...
@@ -12,8 +13,16 @@
* ]
* ]
* }
* }
*/
*/
jIO
.
addStorageType
(
'
replicaterevision
'
,
function
(
spec
,
my
)
{
// define([module_name], [dependencies], module);
(
function
(
dependencies
,
module
)
{
"
use strict
"
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
return
define
(
dependencies
,
module
);
}
module
(
jIO
);
}([
'
jio
'
],
function
(
jIO
)
{
"
use strict
"
;
"
use strict
"
;
jIO
.
addStorageType
(
'
replicaterevision
'
,
function
(
spec
,
my
)
{
var
that
,
priv
=
{};
var
that
,
priv
=
{};
spec
=
spec
||
{};
spec
=
spec
||
{};
that
=
my
.
basicStorage
(
spec
,
my
);
that
=
my
.
basicStorage
(
spec
,
my
);
...
@@ -154,7 +163,12 @@ jIO.addStorageType('replicaterevision', function (spec, my) {
...
@@ -154,7 +163,12 @@ jIO.addStorageType('replicaterevision', function (spec, my) {
* - {object} The error object
* - {object} The error object
* - {object} The response object
* - {object} The response object
*/
*/
priv
.
sendToAllFastestResponseOnly
=
function
(
method
,
doc
,
option
,
callback
)
{
priv
.
sendToAllFastestResponseOnly
=
function
(
method
,
doc
,
option
,
callback
)
{
var
i
,
callbackWrapper
,
error_count
,
last_error
;
var
i
,
callbackWrapper
,
error_count
,
last_error
;
error_count
=
0
;
error_count
=
0
;
callbackWrapper
=
function
(
method
,
index
,
err
,
response
)
{
callbackWrapper
=
function
(
method
,
index
,
err
,
response
)
{
...
@@ -674,4 +688,5 @@ jIO.addStorageType('replicaterevision', function (spec, my) {
...
@@ -674,4 +688,5 @@ jIO.addStorageType('replicaterevision', function (spec, my) {
};
};
return
that
;
return
that
;
});
});
}));
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