Skip to content

Commit

Permalink
Remove usages of createObservableArray.getArray, see phetsims/axon#279
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 12, 2020
1 parent 515bcb0 commit 44a70b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/NumberLineOperationNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ class NumberLineOperationNode extends Node {
// Determine whether the points on the number line are all above or below the displayed range, since that is
// factored in to the visibility of the label.
const displayedRange = numberLine.displayedRangeProperty.value;
const allPointsAboveDisplayRange = numberLine.residentPoints.getArray().reduce(
const allPointsAboveDisplayRange = numberLine.residentPoints.reduce(
( allPointsAboveMax, point ) => allPointsAboveMax && point.valueProperty.value > displayedRange.max,
true
);
const allPointsBelowDisplayRange = numberLine.residentPoints.getArray().reduce(
const allPointsBelowDisplayRange = numberLine.residentPoints.reduce(
( allPointsAboveMax, point ) => allPointsAboveMax && point.valueProperty.value < displayedRange.min,
true
);
Expand Down

0 comments on commit 44a70b9

Please sign in to comment.