jgraph / mxgraph

mxGraph is a fully client side JavaScript diagramming library
Other
6.82k stars 2.06k forks source link

assignment to undeclared variable #475

Closed Exlord closed 4 years ago

Exlord commented 4 years ago

I tried to browsify (babel) the graphs code but there are alot of assignment to undeclared variable errors for mxLoadStylesheets , mxLoadResources , mxForceIncludes , mxResourceExtension

You are assuming that the client code is defined globally but when used inside another project it should be able to work as is and not be depended on global variables ...

It is always a bad idea to use global variables and its a good practice to have all the code inside a namespace ...