Fixing bundle load issues

This commit is contained in:
Henry 2016-01-14 17:32:59 -08:00
parent 032b2542f0
commit 7a563b80ee
3 changed files with 5 additions and 9 deletions

View File

@ -27,10 +27,9 @@
define(
[
'./CreateWizard',
'uuid',
'../../../edit/src/objects/EditableDomainObject'
],
function (CreateWizard, uuid, EditableDomainObject) {
function (CreateWizard, EditableDomainObject) {
"use strict";
/**

View File

@ -90,7 +90,6 @@ define([
"dndService",
"$q",
"navigationService",
"objectService",
"instantiate",
"typeService"
]

View File

@ -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;
}