Skip to content

Commit

Permalink
use only one layoutState object. fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
wissenbach committed Jan 31, 2018
1 parent 54b83b7 commit 1df51b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions svg_rendering/page/js-gen/transcript-adhoc-tree.js
Expand Up @@ -78,7 +78,6 @@ if (window.Faust === undefined) {
*/
var TranscriptAdhocTree = function () {
this.mainZone = null;
this.idMap = {};
this.postBuildDeferred = [];
};

Expand Down Expand Up @@ -179,7 +178,7 @@ if (window.Faust === undefined) {

that.postBuildDeferred.push(
function () {
var anchor = that.idMap[anchorId];
var anchor = layoutState.idMap[anchorId];
if (!anchor)
throw (FaustTranscript.ENCODING_EXCEPTION_PREFIX + "Reference to #" + anchorId + " cannot be resolved!");
var globalCoordRot = coordRot + anchor.globalRotation();
Expand Down Expand Up @@ -218,7 +217,7 @@ if (window.Faust === undefined) {
if (node instanceof Faust.AnnotationNode) {
var xmlId = node.data()["xml:id"];
if (xmlId) {
this.idMap[xmlId] = vc;
layoutState.idMap[xmlId] = vc;
vc.xmlId = xmlId;
}

Expand Down

0 comments on commit 1df51b0

Please sign in to comment.