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 33e5218 commit 89bf803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/least-squares-regression/model/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ inherit( Object, Graph, {
*/
removeMyLineResidual: function( dataPoint ) {
const self = this;
const myLineResidualsCopy = this.myLineResiduals.getArray();
const myLineResidualsCopy = this.myLineResiduals.slice();
myLineResidualsCopy.forEach( function( myLineResidualProperty ) {
if ( myLineResidualProperty.value.dataPoint === dataPoint ) {
self.myLineResiduals.remove( myLineResidualProperty );
Expand Down

0 comments on commit 89bf803

Please sign in to comment.