Merge pull request #409 from ilexwg/master

fix: correct the typo
development
David Benson 2020-01-29 11:37:50 +00:00 committed by GitHub
commit df73309a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 68 deletions

View File

@ -23,14 +23,11 @@
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source) mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
{ {
if (terminal != null && terminal.shape != null) if (terminal != null && terminal.shape != null)
{
if (terminal.shape.stencil != null)
{ {
if (terminal.shape.stencil != null) if (terminal.shape.stencil != null)
{ {
return terminal.shape.stencil.constraints; return terminal.shape.stencil.constraints;
} }
}
else if (terminal.shape.constraints != null) else if (terminal.shape.constraints != null)
{ {
return terminal.shape.constraints; return terminal.shape.constraints;

View File

@ -16,14 +16,11 @@ window.onload = function () {
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source) mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
{ {
if (terminal != null && terminal.shape != null) if (terminal != null && terminal.shape != null)
{
if (terminal.shape.stencil != null)
{ {
if (terminal.shape.stencil != null) if (terminal.shape.stencil != null)
{ {
return terminal.shape.stencil.constraints; return terminal.shape.stencil.constraints;
} }
}
else if (terminal.shape.constraints != null) else if (terminal.shape.constraints != null)
{ {
return terminal.shape.constraints; return terminal.shape.constraints;

View File

@ -10,7 +10,7 @@
* For vertices, the geometry consists of the x- and y-location, and the width * For vertices, the geometry consists of the x- and y-location, and the width
* and height. For edges, the geometry consists of the optional terminal- and * and height. For edges, the geometry consists of the optional terminal- and
* control points. The terminal points are only required if an edge is * control points. The terminal points are only required if an edge is
* unconnected, and are stored in the sourcePoint> and <targetPoint> * unconnected, and are stored in the <sourcePoint> and <targetPoint>
* variables, respectively. * variables, respectively.
* *
* Example: * Example: