Skip to content

Commit

Permalink
remove TODOs, #38
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 2, 2023
1 parent 2349594 commit b5a924e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions js/AtomIdentifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14145,8 +14145,7 @@ const AtomIdentifier = {
return false;
}

// TODO: should not require jquery dependency, https://github.com/phetsims/shred/issues/38
return $.inArray( numNeutrons, tableEntry ) > -1;
return tableEntry.includes( numNeutrons );
},

getNumNeutronsInMostCommonIsotope: function( atomicNumber: number ): number {
Expand Down
2 changes: 0 additions & 2 deletions js/model/Particle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ class Particle extends PhetioObject {
}

public setPositionAndDestination( newPosition: Vector2 ): void {
if ( newPosition instanceof Vector2 ) { // TODO: remove this check, let TypeScript do the work, https://github.com/phetsims/shred/issues/38
this.destinationProperty.set( newPosition );
this.moveImmediatelyToDestination();
}
}

public static ParticleIO = new IOType( 'ParticleIO', {
Expand Down
2 changes: 0 additions & 2 deletions js/model/ParticleAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class ParticleAtom extends PhetioObject {
private readonly nucleonRadius: number;
public readonly positionProperty: TProperty<Vector2>;
public readonly nucleusOffsetProperty: TProperty<Vector2>;

// TODO: must be public for BAN, see https://github.com/phetsims/shred/issues/38
public readonly protons: ObservableArray<Particle>;
public readonly neutrons: ObservableArray<Particle>;
public readonly electrons: ObservableArray<Particle>;
Expand Down
2 changes: 1 addition & 1 deletion js/view/ExpandedPeriodicTableNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ExpandedPeriodicTableNode extends Node {
}
for ( let i = 0; i < rows; i++ ) {
const populatedCellsInRow = POPULATED_CELLS[ i ];
// TODO: test this, https://github.com/phetsims/shred/issues/38

for ( let j = 0; j < populatedCellsInRow.length; j++ ) {
const atomicNumber = elementIndex;
const button = new TextPushButton( AtomIdentifier.getSymbol( elementIndex ), {
Expand Down

0 comments on commit b5a924e

Please sign in to comment.