Skip to content

Commit

Permalink
Rename timer => stepTimer, see phetsims/axon#329
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 11, 2020
1 parent 7d3513e commit 33a30fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/model/CircuitElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class CircuitElement extends PhetioObject {
// shortly with the correct values for both startPosition and endPosition
// See https://github.com/phetsims/circuit-construction-kit-common/issues/413
// if ( assert && this.isFixedCircuitElement && this.startPositionProperty.value.equals( this.endPositionProperty.value ) ) {
// assert && timer.setTimeout( function() {
// assert && stepTimer.setTimeout( function() {
// assert && assert( !this.startPositionProperty.value.equals( this.endPositionProperty.value ), 'vertices cannot be in the same spot' );
// }, 0 );
// }
Expand Down
2 changes: 1 addition & 1 deletion js/view/FixedCircuitElementNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class FixedCircuitElementNode extends CircuitElementNode {
// We are (hopefully!) in the middle of updating both vertices and we (hopefully!) will receive another callback
// shortly with the correct values for both startPosition and endPosition
// See https://github.com/phetsims/circuit-construction-kit-common/issues/413
// assert && timer.setTimeout( function() {
// assert && stepTimer.setTimeout( function() {
// assert && assert( !this.circuitElement.startPositionProperty.get().equals( this.circuitElement.endPositionProperty.get() ), 'vertices cannot be in the same spot' );
// }, 0 );
return;
Expand Down

0 comments on commit 33a30fc

Please sign in to comment.