Closed jbphet closed 11 months ago
I am reluctant to do this without first consulting with the phet-io team, since I believe this will change the phet-io API for a number of sims, and I'm not sure how we are supposed to handle that.
@samreid and I reviewed the changes to the code and the API files in a meeting and they have been approved. Closing.
In https://github.com/phetsims/greenhouse-effect/issues/341 I was asked to remove the phet-io instrumentation of the text in a button due to changes in the way instrumentation of text is done. Upon investigation, it looks like the instrumentation of the text is actually in the
TextPushButton
common code class. There is an existing general issue about removing text instrumentation, see https://github.com/phetsims/phet-io/issues/1952, and I guess this is a specific instance of a case where that change is needed.Looking at the code in
TextPushButton
, I think all that needs to happen is that the tandem is removed from the text node. Here's an excerpt: