diff --git a/lib/features/label-editing/LabelEditingProvider.js b/lib/features/label-editing/LabelEditingProvider.js index 533c6046..2e31c4c7 100644 --- a/lib/features/label-editing/LabelEditingProvider.js +++ b/lib/features/label-editing/LabelEditingProvider.js @@ -1,5 +1,7 @@ 'use strict'; +var _ = require('lodash'); + var UpdateTextHandler = require('./cmd/UpdateTextHandler'); var LabelUtil = require('./LabelUtil'); @@ -22,12 +24,12 @@ function LabelEditingProvider(eventBus, canvas, directEditing, commandStack, bpm // per default, listen to double click events eventBus.on('shape.dblclick', function(event) { directEditing.activate(event.element); - }.bind(this)); + }); // per default, listen to double click events eventBus.on('connection.dblclick', function(event) { directEditing.activate(event.element); - }.bind(this)); + }); // intercept direct canvas clicks to deselect all // selected shapes