freegroup / draw2d

Create Visio like drawings, diagrams or workflows with JavaScript and HTML5
https://freegroup.github.io/draw2d/#/examples
MIT License
738 stars 227 forks source link

Error with a deprecated jQuery method #154

Open sandeeppolineni opened 3 years ago

sandeeppolineni commented 3 years ago

Hello, I'm using contextual menu for a connection and when I right click on a connection, I see this error in my console core.js:4352 ERROR TypeError: $menu.find(...).andSelf is not a function.

A quick google search says that andSelf() has been deprecated in latest versions of jQuery and addBack() is the replacement method. I tested this and it worked fine. Can you please patch the draw2d library with this change.

michalwitkowicz commented 3 years ago

I am also asking for a quick fix of this bug. Thanks!