Skip to content

Commit

Permalink
remove emit1(), use emit() instead, phetsims/axon#211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2019
1 parent 8310b4f commit 9b98f6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/common/view/containers/MovableContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ define( function( require ) {
this.numberOfItemsProperty = new NumberProperty( 0, { numberType: 'Integer' } );

// @public
this.addEmitter = new Emitter(); // emit1(Node) called after a Node is added
this.removeEmitter = new Emitter(); // emit1(Node) called after a Node is removed
this.addEmitter = new Emitter( { validationEnabled: false } ); // emit(Node) called after a Node is added
this.removeEmitter = new Emitter( { validationEnabled: false } ); // emit(Node) called after a Node is removed

assert && assert( !options.children, 'decoration not supported' );
options.children = [ this.backgroundNode ];
Expand Down Expand Up @@ -88,7 +88,7 @@ define( function( require ) {
this.numberOfItemsProperty.set( this.numberOfItemsProperty.get() + 1 );

// notify observers
this.addEmitter.emit1( node );
this.addEmitter.emit( node );
},

/**
Expand All @@ -106,7 +106,7 @@ define( function( require ) {
this.numberOfItemsProperty.set( this.numberOfItemsProperty.get() - 1 );

// notify observers
this.removeEmitter.emit1( node );
this.removeEmitter.emit( node );
},

/**
Expand Down

0 comments on commit 9b98f6b

Please sign in to comment.