mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-28 01:35:54 +00:00
chore: use ES6 exports
Modified the file to use 'export default' instead of 'module.exports' so that I don't get errors stating that there is no default export.
This commit is contained in:
parent
d27ae8f808
commit
8d90d4dc63
@ -1,21 +1,20 @@
|
|||||||
'use strict';
|
import {
|
||||||
|
reduce,
|
||||||
|
keys,
|
||||||
|
forEach
|
||||||
|
} from 'min-dash';
|
||||||
|
|
||||||
var reduce = require('min-dash').reduce,
|
import {
|
||||||
keys = require('min-dash').keys,
|
is,
|
||||||
forEach = require('min-dash').forEach,
|
getBusinessObject
|
||||||
is = require('../../../util/ModelUtil').is,
|
} from '../../../util/ModelUtil';
|
||||||
getBusinessObject = require('../../../util/ModelUtil').getBusinessObject;
|
|
||||||
|
|
||||||
|
export default function UpdateModdlePropertiesHandler(elementRegistry) {
|
||||||
function UpdateModdlePropertiesHandler(elementRegistry) {
|
|
||||||
this._elementRegistry = elementRegistry;
|
this._elementRegistry = elementRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateModdlePropertiesHandler.$inject = ['elementRegistry'];
|
UpdateModdlePropertiesHandler.$inject = ['elementRegistry'];
|
||||||
|
|
||||||
module.exports = UpdateModdlePropertiesHandler;
|
|
||||||
|
|
||||||
|
|
||||||
UpdateModdlePropertiesHandler.prototype.execute = function(context) {
|
UpdateModdlePropertiesHandler.prototype.execute = function(context) {
|
||||||
|
|
||||||
var element = context.element,
|
var element = context.element,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user