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 23ffc6a commit 0889159
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/common/model/TermCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class TermCreator {
* @public
*/
getPositiveTermsOnPlate() {
return _.filter( this.termsOnPlate.getArray(), term => ( term.sign === 1 ) );
return _.filter( this.termsOnPlate, term => ( term.sign === 1 ) );
}

/**
Expand All @@ -430,7 +430,7 @@ class TermCreator {
* @public
*/
getNegativeTermsOnPlate() {
return _.filter( this.termsOnPlate.getArray(), term => ( term.sign === -1 ) );
return _.filter( this.termsOnPlate, term => ( term.sign === -1 ) );
}

/**
Expand Down Expand Up @@ -472,7 +472,7 @@ class TermCreator {
* @public
*/
disposeTermsNotOnPlate() {
this.disposeTerms( _.difference( this.allTerms.getArray(), this.termsOnPlate.getArray() ) );
this.disposeTerms( _.difference( this.allTerms, this.termsOnPlate ) );
this.hideAllTermHalos();
}

Expand Down Expand Up @@ -502,7 +502,7 @@ class TermCreator {
* @private
*/
hideAllTermHalos() {
for ( let i = 0; i < this.allTerms.getArray().length; i++ ) {
for ( let i = 0; i < this.allTerms.length; i++ ) {
this.allTerms.get( i ).haloVisibleProperty.value = false;
}
}
Expand Down

0 comments on commit 0889159

Please sign in to comment.