jgraph / mxgraph

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

Documentation Issue: mxGraph.validateGraph #23

Closed MojoJojo closed 8 years ago

MojoJojo commented 8 years ago

Hi,

Not sure if I'm missing something but in the documentation for validateGraph method in mxgraph/javascript/src/js/view/mxGraph.js, it says:

This function returns true if no validation errors exist in the graph.

If you look at the return statement for the method (line 8445) it is defined as:

return (warning.length > 0 || !isValid) ? warning : null;

which means that the method returns either a null in case of successful validation or warning array in case of failed validations. Or am I missing something?

alderg commented 8 years ago

Thanks for the report, this will be fixed in the next release.