[Representation] Move changes back

Move changed lines back to their original location to simplify
diff.
This commit is contained in:
Victor Woeltjen 2015-10-28 15:38:11 -07:00
parent 5677548298
commit 0404303042

View File

@ -155,6 +155,14 @@ define(
uses = ((representation || {}).uses || []),
canRepresent = !!(path && domainObject);
// Create an empty object named "representation", for this
// 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 ? path : undefined);
// Any existing representers are no longer valid; release them.
destroyRepresenters();
@ -169,14 +177,6 @@ define(
delete $scope[property];
});
// Create an empty object named "representation", for this
// 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 ? path : undefined);
// Populate scope with fields associated with the current
// domain object (if one has been passed in)
if (canRepresent) {