mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-26 23:50:43 +00:00
21 lines
381 B
JavaScript
21 lines
381 B
JavaScript
'use strict';
|
|
|
|
var forEach = require('lodash/collection/forEach');
|
|
|
|
function getProperties(descriptor, keepDefault) {
|
|
var properties = [];
|
|
|
|
forEach(descriptor.properties, function(property) {
|
|
|
|
if (keepDefault && property.default) {
|
|
return;
|
|
}
|
|
|
|
properties.push(property.ns.name);
|
|
});
|
|
|
|
return properties;
|
|
}
|
|
|
|
module.exports.getProperties = getProperties;
|