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

Commit

Permalink
#41 - lint fix
Browse files Browse the repository at this point in the history
I should do this before commits sorry
  • Loading branch information
CullieM committed Aug 24, 2021
1 parent ace96f7 commit 43bbfa5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/views/ts/nodeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ export function receiveJumps(jumps: NodeJump[]) : void
{

//DESTROY ALL THE ARROWS
jumpMap.forEach(arrow => {
jumpMap.forEach(arrow =>
{
arrow.destroy();
});

Expand Down Expand Up @@ -756,16 +757,21 @@ export function receiveJumps(jumps: NodeJump[]) : void
}

/**
* Delete jumps
* Should just be get([from,to]).destroy();
* * Delete jumps
* Should just be:
* get([from,to]).destroy();
* delete([from,to]);
* @param {number} from The source node UID
* @param {number} to The target node UID
* @returns {void}
*/
function removeJump(from: number, to: number){
function removeJump(from: number, to: number)
{
jumpMap.delete([from, to]);
jumpMap.forEach((value, key) =>
{
if(key[0] == from && key[1] == to){
if(key[0] == from && key[1] == to)
{
value.destroy();
}
});
Expand Down

0 comments on commit 43bbfa5

Please sign in to comment.