chore: code style

* single-line comments should always be lowercase
This commit is contained in:
Philipp 2022-01-30 16:50:02 +01:00 committed by Philipp Fromme
parent cfb3dd4ace
commit ebba204435
3 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ var OPEN_CLASS = 'bjs-breadcrumbs-shown';
/**
* Adds Overlays that allow switching planes on collapsed subprocesses.
* Adds overlays that allow switching planes on collapsed subprocesses.
*
* @param {eventBus} eventBus
* @param {elementRegistry} elementRegistry
@ -24,7 +24,7 @@ export default function DrilldownBreadcrumbs(eventBus, elementRegistry, overlays
var boParents = [];
// Update primary shape if Name or ID of the plane changes
// update primary shape if name or ID of the plane changes
eventBus.on('element.changed', function(e) {
var shape = e.element;
@ -37,7 +37,7 @@ export default function DrilldownBreadcrumbs(eventBus, elementRegistry, overlays
primary && eventBus.fire('element.changed', { element: primary });
});
// update breadcrumbs if name/id of the primary shape changes
// update breadcrumbs if name or ID of the primary shape changes
eventBus.on('element.changed', function(e) {
var shape = e.element,
bo = getBusinessObject(shape);
@ -108,7 +108,7 @@ export default function DrilldownBreadcrumbs(eventBus, elementRegistry, overlays
DrilldownBreadcrumbs.$inject = [ 'eventBus', 'elementRegistry', 'overlays', 'canvas' ];
// helpers
// helpers //////////
/**
* Returns the parents for the element using the business object chain,

View File

@ -20,7 +20,7 @@ var DEFAULT_POSITION = {
/**
* Creates diPlanes and canvas planes when collapsed subprocesses are created.
* Creates bpmndi:BPMNPlane elements and canvas planes when collapsed subprocesses are created.
*
*
* @param {Canvas} canvas

View File

@ -20,7 +20,7 @@ describe('features - drilldown', function() {
beforeEach(bootstrapModeler(multiLayerXML, { modules: testModules }));
describe('Navigation - Collaboration', function() {
describe('navigation - collaboration', function() {
var process, participant;
@ -85,7 +85,7 @@ describe('features - drilldown', function() {
);
it('should remember scroll and zoom after morph', inject(function(canvas, modeling) {
it('should remember scroll and zoom after switching planes', inject(function(canvas, modeling) {
// given
canvas.scroll({ dx: 500, dy: 500 });
@ -109,7 +109,7 @@ describe('features - drilldown', function() {
});
describe('Breadcrumbs - Name changes', function() {
describe('breadcrumbs - name changes', function() {
it('should update on plane name change',
inject(function(canvas, modeling) {