bpmn-io / bpmn-js-token-simulation

A BPMN 2.0 specification compliant token simulator.
https://bpmn-io.github.io/bpmn-js-token-simulation/modeler.html?e=1&pp=1
MIT License
243 stars 69 forks source link

fix: Duplicate event listener functions #179

Closed miyuesc closed 3 weeks ago

miyuesc commented 4 weeks ago

Proposed Changes

Removed some of the duplicate code in toggle-mode/viewer

### Checklist To ensure you provided everything we need to look at your PR: * [ ] **Brief textual description** of the changes present * [ ] **Visual demo** attached * [ ] **Steps to try out** present, i.e. [using the `@bpmn-io/sr` tool](https://github.com/bpmn-io/sr) * [ ] Related issue linked via `Closes {LINK_TO_ISSUE}` or `Related to {LINK_TO_ISSUE}`
barmac commented 3 weeks ago

Thank you! Indeed there was a duplicated listener 😅