Skip to content

Commit

Permalink
Ignore 'compartmentRef' of complex members iVis-at-Bilkent/newt/issue…
Browse files Browse the repository at this point in the history
  • Loading branch information
kinimesi committed Oct 2, 2017
1 parent d6ba649 commit 1295308
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utilities/sbgnml-to-json-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ var sbgnmlToJson = {
var glyph = childGlyphs[i];
var glyphClass = glyph.class_;
if (glyphClass !== 'state variable' && glyphClass !== 'unit of information') {
if(!glyph.compartmentRef || glyph.compartmentRef == elId) {
if (glyph.compartmentRef && glyph.compartmentRef != elId && eleClass == 'submap') {
self.traverseNodes(glyph, jsonArray, glyph.compartmentRef, compartments);
}
else {
self.traverseNodes(glyph, jsonArray, elId, compartments);
}
else if (glyph.compartmentRef != elId) {
self.traverseNodes(glyph, jsonArray, glyph.compartmentRef, compartments);
};
}
}
} else {
Expand Down

0 comments on commit 1295308

Please sign in to comment.