-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument ObservableArray's lengthProperty #135
Comments
I instrumented Im not sure why this is, @zepumph or @samreid would you be able to help take a look? It might be due to my instrumentation of |
Having the |
Sure, I instrumented forces-and-motion-basics adds a listener to |
I noticed this code in TObservableArray: setValue: function( instance, value){
// TODO: is this is a no no? Does PhET-iO have this sort of power, see https://github.com/phetsims/phet-io/issues/1054
instance._array = value;
}, @jessegreenberg can you please change this to: setValue: function( instance, value ) {
instance.clear();
instance.addAll( value );
}, It should update the lengthProperty correctly. After making this change, please uninstrument |
…vableArray lengthProperty, see #135
It's working great @samreid, thanks! I replaced implementation in |
lengthProperty of ObservableArray needs to be instrumented.
The text was updated successfully, but these errors were encountered: