parent
b9b64f589b
commit
b0eea3dbef
|
@ -10,16 +10,16 @@ var labelUtil = require('../label-editing/LabelUtil');
|
|||
/**
|
||||
* Provides ability to search through BPMN elements
|
||||
*/
|
||||
function Search(elementRegistry, searchPad) {
|
||||
function BpmnSearchProvider(elementRegistry, searchPad) {
|
||||
|
||||
this._elementRegistry = elementRegistry;
|
||||
|
||||
searchPad.registerProvider(this);
|
||||
}
|
||||
|
||||
module.exports = Search;
|
||||
module.exports = BpmnSearchProvider;
|
||||
|
||||
Search._inject = [
|
||||
BpmnSearchProvider.$inject = [
|
||||
'elementRegistry',
|
||||
'searchPad'
|
||||
];
|
||||
|
@ -43,7 +43,7 @@ Search._inject = [
|
|||
* @param {String} pattern
|
||||
* @return {Array<Result>}
|
||||
*/
|
||||
Search.prototype.find = function(pattern) {
|
||||
BpmnSearchProvider.prototype.find = function(pattern) {
|
||||
var elements = this._elementRegistry.filter(function(element) {
|
||||
if (element.labelTarget) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue