From bea9f22a0c5181e4ef611d329aaf16c1c815d738 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen <victor.woeltjen@nasa.gov> Date: Fri, 29 Apr 2016 11:51:21 -0700 Subject: [PATCH] [Persistence] Remove persistence usage from TimelineSwimlaneDecorator --- .../src/controllers/swimlane/TimelineSwimlaneDecorator.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/features/timeline/src/controllers/swimlane/TimelineSwimlaneDecorator.js b/platform/features/timeline/src/controllers/swimlane/TimelineSwimlaneDecorator.js index 522197a873..bc263de08a 100644 --- a/platform/features/timeline/src/controllers/swimlane/TimelineSwimlaneDecorator.js +++ b/platform/features/timeline/src/controllers/swimlane/TimelineSwimlaneDecorator.js @@ -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; }