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( define(
[ [
'./CreateWizard', './CreateWizard',
'uuid',
'../../../edit/src/objects/EditableDomainObject' '../../../edit/src/objects/EditableDomainObject'
], ],
function (CreateWizard, uuid, EditableDomainObject) { function (CreateWizard, EditableDomainObject) {
"use strict"; "use strict";
/** /**

View File

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

View File

@@ -26,9 +26,8 @@
*/ */
define( define(
['./GestureConstants', ['./GestureConstants',
'../../../commonUI/edit/src/objects/EditableDomainObject', '../../../commonUI/edit/src/objects/EditableDomainObject'],
'uuid'], function (GestureConstants, EditableDomainObject) {
function (GestureConstants, EditableDomainObject, uuid) {
"use strict"; "use strict";
/** /**
@@ -42,7 +41,7 @@ define(
* @param {DomainObject} domainObject the domain object whose * @param {DomainObject} domainObject the domain object whose
* composition should be modified as a result of the drop. * 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'), var actionCapability = domainObject.getCapability('action'),
editableDomainObject, editableDomainObject,
scope = element.scope && element.scope(), scope = element.scope && element.scope(),
@@ -129,12 +128,11 @@ define(
var typeKey = 'telemetry.panel', var typeKey = 'telemetry.panel',
type = typeService.getType(typeKey), type = typeService.getType(typeKey),
model = type.getInitialModel(), model = type.getInitialModel(),
id = uuid(),
newPanel, newPanel,
composeAction; composeAction;
model.type = typeKey; model.type = typeKey;
newPanel = new EditableDomainObject(instantiate(model, id), $q); newPanel = new EditableDomainObject(instantiate(model), $q);
if (!canCompose(newPanel, selectedObject)) { if (!canCompose(newPanel, selectedObject)) {
return undefined; return undefined;
} }