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 ...
I tried to browsify (babel) the graphs code but there are alot of
assignment to undeclared variable
errors formxLoadStylesheets
,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 ...