Comparing version 0.6.0 to 0.6.1
@@ -24,14 +24,9 @@ 'use strict'; | ||
// per default, listen to double click events | ||
eventBus.on('shape.dblclick', function(event) { | ||
// listen to dblclick on non-root elements | ||
eventBus.on('element.dblclick', function(event) { | ||
directEditing.activate(event.element); | ||
}); | ||
// per default, listen to double click events | ||
eventBus.on('connection.dblclick', function(event) { | ||
directEditing.activate(event.element); | ||
}); | ||
// intercept direct canvas clicks to deselect all selected shapes | ||
eventBus.on('canvas.click', function(event) { | ||
eventBus.on('element.click', function(event) { | ||
directEditing.complete(); | ||
@@ -38,0 +33,0 @@ }); |
{ | ||
"name": "bpmn-js", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A bpmn 2.0 toolkit and web modeler", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -40,3 +40,3 @@ 'use strict'; | ||
// when | ||
eventBus.fire('shape.dblclick', { element: shape }); | ||
eventBus.fire('element.dblclick', { element: shape }); | ||
@@ -57,3 +57,3 @@ // then | ||
// activate | ||
eventBus.fire('shape.dblclick', { element: shape }); | ||
eventBus.fire('element.dblclick', { element: shape }); | ||
@@ -74,3 +74,3 @@ // a jQuery <textarea /> element | ||
it('should submit on <canvas.click>', inject(function(elementRegistry, directEditing, eventBus) { | ||
it('should submit on root element click', inject(function(elementRegistry, directEditing, canvas, eventBus) { | ||
@@ -82,3 +82,3 @@ // given | ||
// activate | ||
eventBus.fire('shape.dblclick', { element: shape }); | ||
eventBus.fire('element.dblclick', { element: shape }); | ||
@@ -93,3 +93,3 @@ var newName = 'new value'; | ||
textarea.val(newName); | ||
eventBus.fire('canvas.click', {}); | ||
eventBus.fire('element.click', { element: canvas.getRootElement() }); | ||
@@ -118,5 +118,5 @@ // then | ||
if (element.waypoints) { | ||
eventBus.fire('connection.dblclick', { element: element }); | ||
eventBus.fire('element.dblclick', { element: element }); | ||
} else { | ||
eventBus.fire('shape.dblclick', { element: element }); | ||
eventBus.fire('element.dblclick', { element: element }); | ||
} | ||
@@ -192,3 +192,3 @@ } | ||
eventBus.on('shape.changed', function(e) { | ||
eventBus.on('element.changed', function(e) { | ||
if (e.element === diagramElement) { | ||
@@ -215,3 +215,3 @@ listenerCalled = true; | ||
eventBus.on('shape.changed', function(e) { | ||
eventBus.on('element.changed', function(e) { | ||
if (e.element === diagramElement.label) { | ||
@@ -218,0 +218,0 @@ listenerCalled = true; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
800093
6261