diff --git a/core/objects/dot/dot.ts b/core/objects/dot/dot.ts index b746bc2..1c3c9cf 100644 --- a/core/objects/dot/dot.ts +++ b/core/objects/dot/dot.ts @@ -179,10 +179,10 @@ module KaryGraph { /** Disconnect dot from Dot */ public DisconnectFrom( dot: Dot ): boolean { - if ( this.Inputs.contains( dot.Id ) ) { + if ( this.Inputs.includes( dot.Id ) ) { this.DisconnectInput( dot.Id ); return true; - } else if ( this.Outputs.contains( dot.Id ) ) { + } else if ( this.Outputs.includes( dot.Id ) ) { this.DisconnectOutput( dot.Id ); return true; }