Skip to content

Commit

Permalink
Avoid nested Emitters for callback emitters, see phetsims/phet-io#1194
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 7, 2017
1 parent c618829 commit eafa0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/view/PeriodicTableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ define( function( require ) {
this.options = options;

// @private (phet-io) send a message when this button is pressed (only occurs when interactive===true)
this.startedCallbacksForPressedEmitter = new Emitter();
this.endedCallbacksForPressedEmitter = new Emitter();
this.startedCallbacksForPressedEmitter = new Emitter( { indicateCallbacks: false } );
this.endedCallbacksForPressedEmitter = new Emitter( { indicateCallbacks: false } );

// @private
this.normalFill = options.interactive ? cellColor.enabled : cellColor.disabled;
Expand Down

0 comments on commit eafa0fc

Please sign in to comment.