Skip to content

Commit

Permalink
Merge pull request #36 from amida-tech/mm-bug-squash
Browse files Browse the repository at this point in the history
Bug fix - issue 364
  • Loading branch information
Kevin Young committed Jul 18, 2014
2 parents 3c045f7 + 68c108a commit 561244e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/parser/ccda/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ Cleanup.extractAllFields = function (flist) { // We need Cleanup function to bec
//console.log(JSON.stringify(this,null,4));
//console.log(this);
//console.log("k", k);
var tmp = this.js[k];
delete this.js[k];
if (this.js) {
var tmp = this.js[k];
delete this.js[k];
}
if (tmp) { //HACK: added this if
if (tmp.js) {
Object.keys(tmp.js).forEach(function (m) {
Expand Down

0 comments on commit 561244e

Please sign in to comment.