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
4ae4e5be
Commit
4ae4e5be
authored
Jan 16, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jiotests clone function which crashed when trying to clone undefined
parent
2e934806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
test/jiotests.js
test/jiotests.js
+5
-1
No files found.
test/jiotests.js
View file @
4ae4e5be
...
...
@@ -25,7 +25,11 @@ contains = function (array,content) {
return
false
;
},
clone
=
function
(
obj
)
{
return
JSON
.
parse
(
JSON
.
stringify
(
obj
));
var
tmp
=
JSON
.
stringify
(
obj
);
if
(
tmp
!==
undefined
)
{
return
JSON
.
parse
(
tmp
);
}
return
tmp
;
},
// generates a revision hash from document metadata, revision history
// and the deleted_flag
...
...
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