mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-14 11:11:14 +08:00
chore(project): use inherits util
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var inherits = require('inherits');
|
||||
|
||||
var BaseModeling = require('diagram-js/lib/features/modeling/Modeling');
|
||||
|
||||
var UpdatePropertiesHandler = require('./cmd/UpdatePropertiesHandler');
|
||||
@ -16,12 +18,13 @@ function Modeling(eventBus, elementFactory, commandStack) {
|
||||
BaseModeling.call(this, eventBus, elementFactory, commandStack);
|
||||
}
|
||||
|
||||
Modeling.prototype = Object.create(BaseModeling.prototype);
|
||||
inherits(Modeling, BaseModeling);
|
||||
|
||||
Modeling.$inject = [ 'eventBus', 'elementFactory', 'commandStack' ];
|
||||
|
||||
module.exports = Modeling;
|
||||
|
||||
|
||||
Modeling.prototype.getHandlers = function() {
|
||||
var handlers = BaseModeling.prototype.getHandlers.call(this);
|
||||
|
||||
|
Reference in New Issue
Block a user