[Representation] Restore ordering in mct-representation

Revert "[Timeline] Change ordering in mct-representation"

This reverts commit 20ecf168f2.
These changes introduced a regression due to ordering
expected by time conductor, #957
This commit is contained in:
Victor Woeltjen 2016-05-25 11:03:32 -07:00
parent 05b4f5401e
commit ed69a65f9b

View File

@ -177,6 +177,10 @@ define(
// representation to store local variables into. // representation to store local variables into.
$scope.representation = {}; $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. // Any existing representers are no longer valid; release them.
destroyRepresenters(); destroyRepresenters();
@ -222,10 +226,6 @@ define(
// next change object/key pair changes // next change object/key pair changes
toClear = uses.concat(['model']); 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 // Update the representation when the key changes (e.g. if a