1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-07-03 17:01:05 +01:00

feat: include private fields during convert

This commit is contained in:
hacksalot
2018-02-01 06:44:07 -05:00
parent 76a386c9df
commit 5161a3a823
8 changed files with 30 additions and 21 deletions

View File

@ -53,12 +53,12 @@ class FreshResume extends AbstractResume
###
parseJSON: ( rep, opts ) ->
# Ignore any element with the 'ignore: true' or 'private: true' designator.
that = @
{ scrubbed, ignoreList, privateList } = @scrubResume rep, opts
if opts and opts.privatize
# Ignore any element with the 'ignore: true' or 'private: true' designator.
{ scrubbed, ignoreList, privateList } = @scrubResume rep, opts
# Now apply the resume representation onto this object
extend( true, @, scrubbed );
extend true, @, if opts and opts.privatize then scrubbed else rep
# If the resume has already been processed, then we are being called from
# the .dupe method, and there's no need to do any post processing