Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
variety
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
variety
Commits
88e5f3c6
Commit
88e5f3c6
authored
Jun 03, 2016
by
Tim Ludwinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lint errors
parent
9b3038da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
variety.js
variety.js
+2
-2
No files found.
variety.js
View file @
88e5f3c6
...
...
@@ -187,7 +187,7 @@ Released by Maypop Inc, © 2012-2016, under the MIT License. */
}
function
serialize
(
document
,
parentKey
,
maxDepth
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
excludeSubkeys
,
parentKey
.
replace
(
".XX."
,
'.'
)))
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
excludeSubkeys
,
parentKey
.
replace
(
'.XX.'
,
'.'
)))
return
;
for
(
var
key
in
document
)
{
//skip over inherited properties such as string, length, etch
...
...
@@ -196,7 +196,7 @@ Released by Maypop Inc, © 2012-2016, under the MIT License. */
}
var
value
=
document
[
key
];
if
(
Array
.
isArray
(
document
))
key
=
"XX"
;
//translate unnamed object key from {_parent_name_}.{_index_} to {_parent_name_}.XX
key
=
'XX'
;
//translate unnamed object key from {_parent_name_}.{_index_} to {_parent_name_}.XX
result
[
parentKey
+
key
]
=
value
;
//it's an object, recurse...only if we haven't reached max depth
if
(
isHash
(
value
)
&&
maxDepth
>
1
)
{
...
...
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