Fixing bundle load issues
This commit is contained in:
@@ -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";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ define([
|
|||||||
"dndService",
|
"dndService",
|
||||||
"$q",
|
"$q",
|
||||||
"navigationService",
|
"navigationService",
|
||||||
"objectService",
|
|
||||||
"instantiate",
|
"instantiate",
|
||||||
"typeService"
|
"typeService"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user