Skip to content

Commit

Permalink
Update documentation for enabledRange update, see #30
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Feb 28, 2018
1 parent e521d58 commit b592b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/model/ISLCModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,15 @@ define( function( require ) {
self.object1.radiusLastChanged = true;
self.object2.radiusLastChanged = false;

// update range if radius changes with constant radius
// update range if radius changed with "constant radius" setting (which didn't trigger other model updates)
updateRange( object1 );
} );

this.object2.radiusProperty.link( function() {
self.object2.radiusLastChanged = true;
self.object1.radiusLastChanged = false;

// update range if radius changed with "constant radius" setting (which didn't trigger other model updates)
updateRange( object2 );
} );
}
Expand Down

0 comments on commit b592b90

Please sign in to comment.