mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-24 17:30:10 +00:00
[fix] Private fields: Resolve off-by-one error.
This commit is contained in:
parent
7f7c936897
commit
c6adab7f9e
4
dist/core/abstract-resume.js
vendored
4
dist/core/abstract-resume.js
vendored
@ -83,10 +83,10 @@ Definition of the AbstractResume class.
|
||||
if (!this.isLeaf) {
|
||||
if (this.node.ignore === true || this.node.ignore === 'true') {
|
||||
ignoreList.push(this.node);
|
||||
return this.remove();
|
||||
this["delete"]();
|
||||
} else if ((this.node["private"] === true || this.node["private"] === 'true') && !includePrivates) {
|
||||
privateList.push(this.node);
|
||||
return this.remove();
|
||||
this["delete"]();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -69,10 +69,11 @@ class AbstractResume
|
||||
if !@isLeaf
|
||||
if @node.ignore == true || @node.ignore == 'true'
|
||||
ignoreList.push @node
|
||||
@remove()
|
||||
@delete()
|
||||
else if (@node.private == true || @node.private == 'true') && !includePrivates
|
||||
privateList.push @node
|
||||
@remove()
|
||||
@delete()
|
||||
return
|
||||
|
||||
scrubbed: scrubbed
|
||||
ingoreList: ignoreList
|
||||
|
Loading…
Reference in New Issue
Block a user