From 04043030422849dfea809aaf58f38d0f8f3cb826 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 28 Oct 2015 15:38:11 -0700 Subject: [PATCH] [Representation] Move changes back Move changed lines back to their original location to simplify diff. --- platform/representation/src/MCTRepresentation.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform/representation/src/MCTRepresentation.js b/platform/representation/src/MCTRepresentation.js index 9d5f612960..3c09edbfc4 100644 --- a/platform/representation/src/MCTRepresentation.js +++ b/platform/representation/src/MCTRepresentation.js @@ -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) {