camunda-bpmn-js
Version:
Embeddable Camunda modeling distributions based on bpmn-js
30 lines (24 loc) • 679 B
JavaScript
/**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this file
* except in compliance with the MIT License.
*/
export class Resources {
static $inject = [ 'config.resources' ];
constructor(resources) {
this._resources = resources || [];
}
set(resources) {
this._resources = resources;
}
getAll() {
return this._resources;
}
filter(fn) {
return this._resources.filter(fn);
}
}