Skip to content

Commit

Permalink
Converted Emitter to use PhetioObject, see phetsims/tandem#46
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 15, 2017
1 parent fe5d410 commit 9caa9f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/model/CircuitConstructionKitModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ define( function( require ) {
var Util = require( 'DOT/Util' );
var Voltmeter = require( 'CIRCUIT_CONSTRUCTION_KIT_COMMON/model/Voltmeter' );
var ZoomControlPanel = require( 'CIRCUIT_CONSTRUCTION_KIT_COMMON/view/ZoomControlPanel' );
var EmitterIO = require( 'AXON/EmitterIO' );

// phet-io modules
var StringIO = require( 'ifphetio!PHET_IO/types/StringIO' );
Expand Down Expand Up @@ -154,7 +155,7 @@ define( function( require ) {

var circuitChangedEmitter = new Emitter( {
tandem: tandem.createTandem( 'circuitChangedEmitter' ),
phetioArgumentTypes: [ StringIO ]
phetioType: EmitterIO( [ StringIO ] )
} );

var emitCircuitChanged = function() {
Expand Down

0 comments on commit 9caa9f2

Please sign in to comment.