[Representation] Rebuild scopes on every change

Create new scopes on every changeTemplate request, even if
the same template is being viewed; presume that we want a
new instance of the same template. Avoids scope reuse for
cases such as switching from a plot of one object to a
plot of another object.
This commit is contained in:
Victor Woeltjen 2015-10-30 15:32:20 -07:00
parent a45dfc3822
commit 04594ea536

View File

@ -131,7 +131,6 @@ define(
}
function changeTemplate(templateUrl) {
if (templateUrl !== activeTemplateUrl) {
if (templateUrl) {
addElement();
self.load(templateUrl).then(function (template) {
@ -147,7 +146,6 @@ define(
}
activeTemplateUrl = templateUrl;
}
}
if (templateUrl) {
changeTemplate(templateUrl);