Merge pull request #942 from nasa/persist-graph-toggles-908

[Timeline] Persist resource graph toggles
This commit is contained in:
Andrew Henry
2016-05-20 13:27:41 -07:00
4 changed files with 21 additions and 5 deletions

View File

@ -177,10 +177,6 @@ define(
// representation to store local variables into.
$scope.representation = {};
// Change templates (passing in undefined to clear
// if we don't have enough info to show a template.)
changeTemplate(canRepresent ? representation : undefined);
// Any existing representers are no longer valid; release them.
destroyRepresenters();
@ -226,6 +222,10 @@ define(
// next change object/key pair changes
toClear = uses.concat(['model']);
}
// Change templates (passing in undefined to clear
// if we don't have enough info to show a template.)
changeTemplate(canRepresent ? representation : undefined);
}
// Update the representation when the key changes (e.g. if a