Bug fixes: mxgraph graph editor example bug fix

in #utopian-io6 years ago

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.
    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

Sort:  

Thanks for the contribution, @chomtana. While we appreciate everyone who contributes to open source projects, we expect a lot more work done before someone can be rewarded for it.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]