Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
FIX #21
Browse files Browse the repository at this point in the history
  • Loading branch information
sinabakh committed Jul 13, 2016
1 parent 0dd9748 commit b1fe2d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/objects/dot/dot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ module KaryGraph {

/** Disconnect dot from Dot */
public DisconnectFrom( dot: Dot ): boolean {
if ( this.Inputs[ dot.Id ] != undefined ) {
if ( this.Inputs.contains( dot.Id ) ) {
this.DisconnectInput( dot.Id );
return true;
} else if ( this.Outputs[ dot.Id ] != undefined ) {
} else if ( this.Outputs.contains( dot.Id ) ) {
this.DisconnectOutput( dot.Id );
return true;
}
Expand Down

0 comments on commit b1fe2d9

Please sign in to comment.