From 65a33f8af57d38bd35847904649f3bfbe52c3e71 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 5 Nov 2015 15:15:22 -0800 Subject: [PATCH] [Creation] Clean up creationService Remove unused dependency, update JSDoc --- platform/commonUI/browse/src/creation/CreationService.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/platform/commonUI/browse/src/creation/CreationService.js b/platform/commonUI/browse/src/creation/CreationService.js index 96fa7303ad..0c7808f997 100644 --- a/platform/commonUI/browse/src/creation/CreationService.js +++ b/platform/commonUI/browse/src/creation/CreationService.js @@ -25,8 +25,8 @@ * Module defining CreateService. Created by vwoeltje on 11/10/14. */ define( - ["uuid"], - function (uuid) { + [], + function () { "use strict"; var NON_PERSISTENT_WARNING = @@ -99,10 +99,7 @@ define( return self.$q.reject(new Error(NON_PERSISTENT_WARNING)); } - // We create a new domain object in three sequential steps: - // 1. Get a new UUID for the object - // 2. Create a model with that ID in the persistence space - // 3. Add that ID to + // Persist the new object, then add it to composition. return newObjectPersistence.persist().then(function () { var id = newObject.getId(); return addToComposition(id, parent, persistence);