Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
preetwinder
jio
Commits
c9741880
Commit
c9741880
authored
12 years ago
by
Tristan Cavelier
Browse files
Options
Download
Email Patches
Plain Diff
getLeavesFromDocumentTree can except branch now
parent
0442ae5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+3
-3
No files found.
src/jio.storage/revisionstorage.js
View file @
c9741880
...
...
@@ -254,11 +254,11 @@ jIO.addStorageType('revision', function (spec, my) {
// search method fills [result] with the winner revision
search
=
function
(
document_tree
)
{
var
i
;
if
(
except
!==
undefined
&&
except
===
document_tree
.
rev
)
{
return
;
}
if
(
document_tree
.
children
.
length
===
0
)
{
// This node is a leaf
if
(
except
!==
undefined
&&
except
===
document_tree
.
rev
)
{
return
;
}
result
.
push
(
document_tree
.
rev
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
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