1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-07-02 08:21:06 +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

@ -71,11 +71,12 @@ Definition of the JRSResume class.
*/
JRSResume.prototype.parseJSON = function(rep, opts) {
var ignoreList, privateList, ref, ref1, scrubbed, that;
var ignoreList, privateList, ref, ref1, scrubbed;
opts = opts || {};
that = this;
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
extend(true, this, scrubbed);
if (opts.privatize) {
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
}
extend(true, this, opts.privatize ? scrubbed : rep);
if (!((ref1 = this.imp) != null ? ref1.processed : void 0)) {
opts = opts || {};
if (opts.imp === void 0 || opts.imp) {