Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
rjs_json_form
Commits
9e2b6711
Commit
9e2b6711
authored
Sep 06, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial change for better code understood
parent
fbd9424c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
jsonform.gadget.js
jsonform.gadget.js
+4
-4
No files found.
jsonform.gadget.js
View file @
9e2b6711
...
@@ -72,11 +72,11 @@
...
@@ -72,11 +72,11 @@
}
}
function
checkCircular
(
urls
,
path
,
url
)
{
function
checkCircular
(
urls
,
path
,
url
)
{
var
required_
stack
,
var
stack
,
idx
,
idx
,
prev_field_path
=
getMaxPathInDict
(
urls
,
path
);
prev_field_path
=
getMaxPathInDict
(
urls
,
path
);
required_
stack
=
urls
[
prev_field_path
]
||
[];
stack
=
urls
[
prev_field_path
]
||
[];
idx
=
required_
stack
.
indexOf
(
url
);
idx
=
stack
.
indexOf
(
url
);
if
(
idx
>=
0
)
{
if
(
idx
>=
0
)
{
if
(
path
===
prev_field_path
&&
idx
===
0
)
{
if
(
path
===
prev_field_path
&&
idx
===
0
)
{
return
;
return
;
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
return
true
;
return
true
;
}
}
// copy and add url as first element
// copy and add url as first element
urls
[
path
]
=
[
url
].
concat
(
required_
stack
);
urls
[
path
]
=
[
url
].
concat
(
stack
);
}
}
function
checkHardCircular
(
g
,
path
,
url
)
{
function
checkHardCircular
(
g
,
path
,
url
)
{
...
...
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