feat(replace-preview): rename moveVisuals to movePreview

related to bpmn-io/diagram-js#182 and bpmn-io/diagram-js#184
This commit is contained in:
Philipp Fromme 2016-08-05 10:41:15 +02:00 committed by Ricardo Matias
parent 39ff8dc780
commit 73487358a9
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ var assign = require('lodash/object/assign'),
var LOW_PRIORITY = 250; var LOW_PRIORITY = 250;
function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, moveVisuals) { function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, movePreview) {
CommandInterceptor.call(this, eventBus); CommandInterceptor.call(this, eventBus);
@ -52,7 +52,7 @@ function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, m
} }
// clone the gfx of the temporary shape and add it to the drag group // clone the gfx of the temporary shape and add it to the drag group
var dragger = moveVisuals.addDragger(context, tempShape); var dragger = movePreview.addDragger(tempShape, context.dragGroup);
context.visualReplacements[id] = dragger; context.visualReplacements[id] = dragger;
@ -102,7 +102,7 @@ function BpmnReplacePreview(eventBus, elementRegistry, elementFactory, canvas, m
}); });
} }
BpmnReplacePreview.$inject = [ 'eventBus', 'elementRegistry', 'elementFactory', 'canvas', 'moveVisuals' ]; BpmnReplacePreview.$inject = [ 'eventBus', 'elementRegistry', 'elementFactory', 'canvas', 'movePreview' ];
inherits(BpmnReplacePreview, CommandInterceptor); inherits(BpmnReplacePreview, CommandInterceptor);