1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-09-10 16:31:58 +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

@@ -48,12 +48,12 @@ class JRSResume extends AbstractResume
###
parseJSON: ( rep, opts ) ->
opts = opts || { };
# Ignore any element with the 'ignore: true' or 'private: true' designator.
that = this
{ scrubbed, ignoreList, privateList } = @scrubResume rep, opts
if opts.privatize
# Ignore any element with the 'ignore: true' or 'private: true' designator.
{ scrubbed, ignoreList, privateList } = @scrubResume rep, opts
# Extend resume properties onto ourself.
extend true, this, scrubbed
extend true, this, if opts.privatize then scrubbed else rep
# Set up metadata
if !@imp?.processed