Repository
https://github.com/jgraph/mxgraph
Bug Fixes
- What was the issue(s)?
In mxgraph graph editor example: https://jgraph.github.io/mxgraph/javascript/examples/grapheditor/www/index.html (Now they have already merged my pull request, so bug already fixed)
When I have clicked on Misc button in sidebar, it freezed at "Loading..." as you can see in my screenshot then I open developer console to see what happened it say that "sb is not defined" as you can see in my screenshot.
[IMAGE: https://cdn.steemitimages.com/DQmTEocGFcSCXJZzUV3LEpZVPFFT32raWw9mvGSiuyg9Vdt/mxgrapheditorbug.jpg] - What was the solution?
I trace error and found that it missing "var sb = this;" in Sidebar.prototype.addMiscPalette function in Sidebar.js, so I add "var sb = this;" in the beginning of the function and then problem disappear.
Then I submit a pull request to https://github.com/jgraph/mxgraph and now it has been merged.
My pull request: https://github.com/jgraph/mxgraph/pull/205
GitHub Account
https://github.com/Chomtana