[Representation] Move changes back
Move changed lines back to their original location to simplify diff.
This commit is contained in:
@@ -155,6 +155,14 @@ define(
|
|||||||
uses = ((representation || {}).uses || []),
|
uses = ((representation || {}).uses || []),
|
||||||
canRepresent = !!(path && domainObject);
|
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.
|
// Any existing representers are no longer valid; release them.
|
||||||
destroyRepresenters();
|
destroyRepresenters();
|
||||||
|
|
||||||
@@ -169,14 +177,6 @@ define(
|
|||||||
delete $scope[property];
|
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
|
// Populate scope with fields associated with the current
|
||||||
// domain object (if one has been passed in)
|
// domain object (if one has been passed in)
|
||||||
if (canRepresent) {
|
if (canRepresent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user