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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
lucas.parsy
jio
Commits
ca9e6d50
Commit
ca9e6d50
authored
Aug 14, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicatestorage instanciation bug -> fixed
parent
154f0305
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/jio.storage/replicatestorage.js
src/jio.storage/replicatestorage.js
+6
-5
No files found.
src/jio.storage/replicatestorage.js
View file @
ca9e6d50
...
@@ -743,22 +743,23 @@
...
@@ -743,22 +743,23 @@
function
replicateStorage
(
spec
,
my
)
{
function
replicateStorage
(
spec
,
my
)
{
var
error
,
priv
=
{},
that
=
my
.
basicStorage
(
spec
,
my
);
var
error
,
priv
=
{},
that
=
my
.
basicStorage
(
spec
,
my
);
if
(
typeof
spec
.
conditions
!==
'
object
'
||
if
(
spec
.
conditions
!==
undefined
&&
Object
.
getPrototypeOf
(
spec
.
conditions
)
!==
Object
.
prototype
)
{
(
typeof
spec
.
conditions
!==
'
object
'
||
Object
.
getPrototypeOf
(
spec
.
conditions
)
!==
Object
.
prototype
))
{
error
=
new
TypeError
(
"
ReplicateStorage():
"
+
error
=
new
TypeError
(
"
ReplicateStorage():
"
+
"
'conditions' is not of type 'object'
"
);
"
'conditions' is not of type 'object'
"
);
}
}
if
(
Array
.
isArray
(
spec
.
storage_list
)
)
{
if
(
!
Array
.
isArray
(
spec
.
storage_list
)
||
spec
.
storage_list
.
length
===
0
)
{
error
=
new
TypeError
(
"
ReplicateStorage():
"
+
error
=
new
TypeError
(
"
ReplicateStorage():
"
+
"
'storage_list' is not
of type 'array'
"
);
"
'storage_list' is not
an array which length > 0
"
);
}
}
//////////////////////////////
//////////////////////////////
// Overrides
// Overrides
that
.
validateState
=
function
()
{
that
.
validateState
=
function
()
{
return
error
&&
error
.
message
;
return
(
error
||
''
)
&&
error
.
message
;
};
};
that
.
specToStore
=
function
()
{
that
.
specToStore
=
function
()
{
...
...
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