From bec8d06e08ad68ba63ba56daabc3ec6b0b696741 Mon Sep 17 00:00:00 2001 From: Philipp Fromme Date: Thu, 22 Mar 2018 12:43:36 +0100 Subject: [PATCH] chore(project): fix typos introduced --- lib/features/modeling/util/ModelingUtil.js | 4 ++-- lib/import/BpmnImporter.js | 2 +- lib/util/model/ModelCloneHelper.js | 2 +- test/spec/features/modeling/BpmnUpdaterSpec.js | 2 +- test/spec/features/popup-menu/ReplaceMenuProviderSpec.js | 4 ++-- test/spec/features/replace-preview/BpmnReplacePreviewSpec.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/features/modeling/util/ModelingUtil.js b/lib/features/modeling/util/ModelingUtil.js index e591901a..1d2706c7 100644 --- a/lib/features/modeling/util/ModelingUtil.js +++ b/lib/features/modeling/util/ModelingUtil.js @@ -6,7 +6,7 @@ var is = require('../../../util/ModelUtil').is; /** - * Return true if element has some of the given types. + * Return true if element has any of the given types. * * @param {djs.model.Base} element * @param {Array} types @@ -23,7 +23,7 @@ module.exports.isAny = isAny; /** - * Return the parent of the element with some of the given types. + * Return the parent of the element with any of the given types. * * @param {djs.model.Base} element * @param {String|Array} anyType diff --git a/lib/import/BpmnImporter.js b/lib/import/BpmnImporter.js index a65536a4..735330cf 100644 --- a/lib/import/BpmnImporter.js +++ b/lib/import/BpmnImporter.js @@ -244,7 +244,7 @@ BpmnImporter.prototype._getEnd = function(semantic, side) { refSemantic = semantic[side + 'Ref']; - // handle mysterious isMsome DataAssociation#sourceRef + // handle mysterious isMany DataAssociation#sourceRef if (side === 'source' && type === 'bpmn:DataInputAssociation') { refSemantic = refSemantic && refSemantic[0]; } diff --git a/lib/util/model/ModelCloneHelper.js b/lib/util/model/ModelCloneHelper.js index f0095125..743e8a5b 100644 --- a/lib/util/model/ModelCloneHelper.js +++ b/lib/util/model/ModelCloneHelper.js @@ -11,7 +11,7 @@ var IGNORED_PROPERTIES = require('./ModelCloneUtils').IGNORED_PROPERTIES; function isAllowedIn(extProp, type) { var allowedIn = extProp.meta.allowedIn; - // '*' is a wildcard, which means some element is allowed to use this property + // '*' is a wildcard, which means any element is allowed to use this property if (allowedIn.length === 1 && allowedIn[0] === '*') { return true; } diff --git a/test/spec/features/modeling/BpmnUpdaterSpec.js b/test/spec/features/modeling/BpmnUpdaterSpec.js index d3d12dd7..5b439b7c 100644 --- a/test/spec/features/modeling/BpmnUpdaterSpec.js +++ b/test/spec/features/modeling/BpmnUpdaterSpec.js @@ -60,7 +60,7 @@ describe('features - bpmn-updater', function() { it('should not create new di refs', inject(function(modeling, elementRegistry, elementFactory) { // given - // sequence flow without some sourceElement and targetElement di information + // sequence flow without any sourceElement and targetElement di information var sequenceFlow = elementRegistry.get('SequenceFlow_4'); var intermediateThrowEvent = elementFactory.createShape({ type: 'bpmn:IntermediateThrowEvent' }), diff --git a/test/spec/features/popup-menu/ReplaceMenuProviderSpec.js b/test/spec/features/popup-menu/ReplaceMenuProviderSpec.js index 0e105b18..23e52e58 100644 --- a/test/spec/features/popup-menu/ReplaceMenuProviderSpec.js +++ b/test/spec/features/popup-menu/ReplaceMenuProviderSpec.js @@ -1571,7 +1571,7 @@ describe('features/popup-menu - replace menu provider', function() { ); - it('should remove conditionExpression when morphing to DefaultFlow', + it('should remove any conditionExpression when morphing to DefaultFlow', inject(function(elementRegistry, modeling, popupMenu, moddle) { // given @@ -1601,7 +1601,7 @@ describe('features/popup-menu - replace menu provider', function() { ); - it('should remove some conditionExpression when morphing to DefaultFlow -> undo', + it('should remove any conditionExpression when morphing to DefaultFlow -> undo', inject(function(elementRegistry, modeling, popupMenu, moddle, commandStack) { // given diff --git a/test/spec/features/replace-preview/BpmnReplacePreviewSpec.js b/test/spec/features/replace-preview/BpmnReplacePreviewSpec.js index 7cb28fcd..91e08da2 100644 --- a/test/spec/features/replace-preview/BpmnReplacePreviewSpec.js +++ b/test/spec/features/replace-preview/BpmnReplacePreviewSpec.js @@ -248,7 +248,7 @@ describe('features/replace-preview', function() { ); - it('should not replace some non-interrupting start events in a selection of multiple elements', + it('should not replace any non-interrupting start events in a selection of multiple elements', inject(function(move, dragging, elementRegistry, selection) { // given