Skip to content

Commit

Permalink
Migrate from ObservableArray => createObservableArray (Proxy), see ph…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 2, 2020
1 parent 985209d commit 5313d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/common/model/BAMBucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Denzell Barnett (PhET Interactive Simulations)
*/

import ObservableArray from '../../../../axon/js/ObservableArray.js';
import createObservableArray from '../../../../axon/js/createObservableArray.js';
import Dimension2 from '../../../../dot/js/Dimension2.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import Vector2Property from '../../../../dot/js/Vector2Property.js';
Expand Down Expand Up @@ -42,7 +42,7 @@ class BAMBucket extends SphereBucket {
this.positionProperty = new Vector2Property( this.position );

// @public {ObservableArray.<Atom2>} Tracks all of the particles in this bucket
this.particleList = new ObservableArray();
this.particleList = createObservableArray();

// @public {Array.<Atom2>} Contains atoms for a bucket when the bucket is full.
this.fullState = [];
Expand Down
4 changes: 2 additions & 2 deletions js/common/model/Kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import BooleanProperty from '../../../../axon/js/BooleanProperty.js';
import Emitter from '../../../../axon/js/Emitter.js';
import ObservableArray from '../../../../axon/js/ObservableArray.js';
import createObservableArray from '../../../../axon/js/createObservableArray.js';
import Property from '../../../../axon/js/Property.js';
import Bounds2 from '../../../../dot/js/Bounds2.js';
import Vector2 from '../../../../dot/js/Vector2.js';
Expand All @@ -37,7 +37,7 @@ class Kit {
this.id = kitIdCounter++;

// @public {ObservableArray.<Atom2>}
this.atomsInPlayArea = new ObservableArray();
this.atomsInPlayArea = createObservableArray();

// @public {Property.<Atom|null>} Atom that has been clicked by user. Used for triggering cut targets for breaking bonds
this.selectedAtomProperty = new Property( null );
Expand Down

0 comments on commit 5313d11

Please sign in to comment.