mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-07-11 04:31:07 +01:00
Update JS.
Keep dist/ updated with src/ for the CLI and require() folks. (package.json goes off dist).
This commit is contained in:
15
dist/core/fresh-resume.js
vendored
15
dist/core/fresh-resume.js
vendored
@ -77,20 +77,11 @@ Definition of the FRESHResume class.
|
||||
*/
|
||||
|
||||
FreshResume.prototype.parseJSON = function(rep, opts) {
|
||||
var ignoreList, ref, scrubbed, that, traverse;
|
||||
var ignoreList, privateList, ref, ref1, scrubbed, that;
|
||||
that = this;
|
||||
traverse = require('traverse');
|
||||
ignoreList = [];
|
||||
scrubbed = traverse(rep).map(function(x) {
|
||||
if (!this.isLeaf && this.node.ignore) {
|
||||
if (this.node.ignore === true || this.node.ignore === 'true') {
|
||||
ignoreList.push(this.node);
|
||||
return this.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
ref = this.scrubResume(rep, opts), scrubbed = ref.scrubbed, ignoreList = ref.ignoreList, privateList = ref.privateList;
|
||||
extend(true, this, scrubbed);
|
||||
if (!((ref = this.imp) != null ? ref.processed : void 0)) {
|
||||
if (!((ref1 = this.imp) != null ? ref1.processed : void 0)) {
|
||||
opts = opts || {};
|
||||
if (opts.imp === void 0 || opts.imp) {
|
||||
this.imp = this.imp || {};
|
||||
|
Reference in New Issue
Block a user