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 8cd929c commit cfeaf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/DensityBuoyancyModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import BooleanProperty from '../../../../axon/js/BooleanProperty.js';
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
import ObservableArray from '../../../../axon/js/ObservableArray.js';
import createObservableArray from '../../../../axon/js/createObservableArray.js';
import Property from '../../../../axon/js/Property.js';
import Bounds3 from '../../../../dot/js/Bounds3.js';
import Vector2 from '../../../../dot/js/Vector2.js';
Expand Down Expand Up @@ -129,7 +129,7 @@ class DensityBuoyancyModel {
this.engine.addBody( this.barrierBody );

// @public {ObservableArray.<Mass>}
this.masses = new ObservableArray();
this.masses = createObservableArray();
this.masses.addItemAddedListener( mass => {
this.engine.addBody( mass.body );
} );
Expand Down

0 comments on commit cfeaf76

Please sign in to comment.