chore(project): use inherits util

This commit is contained in:
Nico Rehwaldt
2015-03-23 15:15:32 +01:00
parent 695a973e92
commit e7bbb5d6bf
8 changed files with 25 additions and 11 deletions

View File

@ -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);