[Persistence] Remove persistence usage from TimelineSwimlaneDecorator

This commit is contained in:
Victor Woeltjen 2016-04-29 11:51:21 -07:00
parent 3f330dccf1
commit bea9f22a0c

View File

@ -37,7 +37,6 @@ define(
var domainObject = swimlane && swimlane.domainObject,
model = (domainObject && domainObject.getModel()) || {},
mutator = domainObject && domainObject.getCapability('mutation'),
persister = domainObject && domainObject.getCapability('persistence'),
type = domainObject && domainObject.getCapability('type'),
dropHandler = new TimelineSwimlaneDropHandler(swimlane);
@ -50,7 +49,7 @@ define(
mutator.mutate(function (model) {
model.relationships = model.relationships || {};
model.relationships[ACTIVITY_RELATIONSHIP] = value;
}).then(persister.persist);
});
}
}
// ...otherwise, use as a getter
@ -65,7 +64,7 @@ define(
// Update the link
mutator.mutate(function (model) {
model.link = value;
}).then(persister.persist);
});
}
return model.link;
}
@ -86,7 +85,7 @@ define(
}
// Activities should have the Activity Modes and Activity Link dialog
if (type && type.instanceOf("activity") && mutator && persister) {
if (type && type.instanceOf("activity") && mutator) {
swimlane.modes = modes;
swimlane.link = link;
}