Closed samreid closed 7 years ago
I added support in https://github.com/phetsims/vegas/commit/7a585d97cacca47bbd6d751c15ef9a2a72081578 . Hopefully this won't disturb existing usages of RewardNode, but it should reviewed. @jbphet @jonathanolson @pixelzoom @jessegreenberg can you please review the changes?
So now we have support for both Events (stepSource) and Emitter (stepEmitter). Rather than adding support for Emitter, why not replace Events with Emitter? I see only 1 usage of stepSource, in fraction-matcher.
Thanks, you are right--it looks like stepSource can be removed now.
I removed stepSource and confirmed Fraction Matcher still animates the reward. @pixelzoom would you like to review at your convenience?
Discovered in phetsims/axon#102 RewardNode uses an Events argument for driving the animation. PropertySet extends Events but will no longer be used, and Events is deprecated. RewardNode should support Emitter.