diff --git a/platform/commonUI/browse/src/creation/CreateAction.js b/platform/commonUI/browse/src/creation/CreateAction.js index af3c5263c3..83d88ba709 100644 --- a/platform/commonUI/browse/src/creation/CreateAction.js +++ b/platform/commonUI/browse/src/creation/CreateAction.js @@ -27,10 +27,9 @@ define( [ './CreateWizard', - 'uuid', '../../../edit/src/objects/EditableDomainObject' ], - function (CreateWizard, uuid, EditableDomainObject) { + function (CreateWizard, EditableDomainObject) { "use strict"; /** diff --git a/platform/representation/bundle.js b/platform/representation/bundle.js index a2d34b4172..a58ce4f34c 100644 --- a/platform/representation/bundle.js +++ b/platform/representation/bundle.js @@ -90,7 +90,6 @@ define([ "dndService", "$q", "navigationService", - "objectService", "instantiate", "typeService" ] diff --git a/platform/representation/src/gestures/DropGesture.js b/platform/representation/src/gestures/DropGesture.js index 7d3b0aa675..1b7881a770 100644 --- a/platform/representation/src/gestures/DropGesture.js +++ b/platform/representation/src/gestures/DropGesture.js @@ -26,9 +26,8 @@ */ define( ['./GestureConstants', - '../../../commonUI/edit/src/objects/EditableDomainObject', - 'uuid'], - function (GestureConstants, EditableDomainObject, uuid) { + '../../../commonUI/edit/src/objects/EditableDomainObject'], + function (GestureConstants, EditableDomainObject) { "use strict"; /** @@ -42,7 +41,7 @@ define( * @param {DomainObject} domainObject the domain object whose * composition should be modified as a result of the drop. */ - function DropGesture(dndService, $q, navigationService, objectService, instantiate, typeService, element, domainObject) { + function DropGesture(dndService, $q, navigationService, instantiate, typeService, element, domainObject) { var actionCapability = domainObject.getCapability('action'), editableDomainObject, scope = element.scope && element.scope(), @@ -129,12 +128,11 @@ define( var typeKey = 'telemetry.panel', type = typeService.getType(typeKey), model = type.getInitialModel(), - id = uuid(), newPanel, composeAction; model.type = typeKey; - newPanel = new EditableDomainObject(instantiate(model, id), $q); + newPanel = new EditableDomainObject(instantiate(model), $q); if (!canCompose(newPanel, selectedObject)) { return undefined; }