Skip to content

Commit

Permalink
Support constructor or mutate for IOObject initialization, see phetsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2017
1 parent 159cab8 commit 42ca7a7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions js/view/AtomNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ define( function( require ) {
var ElectronCloudView = require( 'SHRED/view/ElectronCloudView' );
var ElectronShellView = require( 'SHRED/view/ElectronShellView' );
var inherit = require( 'PHET_CORE/inherit' );
var IOObject = require( 'TANDEM/IOObject' );
var Node = require( 'SCENERY/nodes/Node' );
var Path = require( 'SCENERY/nodes/Path' );
var PhetColorScheme = require( 'SCENERY_PHET/PhetColorScheme' );
Expand Down Expand Up @@ -55,7 +54,7 @@ define( function( require ) {
options
);

Node.call( this, IOObject.getOptions( options ) ); // Call super constructor.
Node.call( this ); // Call super constructor.
var self = this;

// @private
Expand Down
1 change: 0 additions & 1 deletion js/view/ElectronCloudView.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ define( function( require ) {
options = _.extend( { tandem: Tandem.required }, options );

Circle.call( this, {
tandem: options.tandem,
cursor: 'pointer',
fill: 'pink',
translation: modelViewTransform.modelToViewPosition( { x: 0, y: 0 } )
Expand Down
3 changes: 1 addition & 2 deletions js/view/InteractiveSchematicAtom.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ define( function( require ) {
var BucketFront = require( 'SCENERY_PHET/bucket/BucketFront' );
var BucketHole = require( 'SCENERY_PHET/bucket/BucketHole' );
var inherit = require( 'PHET_CORE/inherit' );
var IOObject = require( 'TANDEM/IOObject' );
var Node = require( 'SCENERY/nodes/Node' );
var ParticleView = require( 'SHRED/view/ParticleView' );
var shred = require( 'SHRED/shred' );
Expand All @@ -32,7 +31,7 @@ define( function( require ) {
tandem: Tandem.required
}, options );

Node.call( this, IOObject.getOptions( options ) );
Node.call( this );
var self = this;

var particleViews = []; // remember all the particleViews when using in dispose
Expand Down
3 changes: 1 addition & 2 deletions js/view/ParticleView.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ define( function( require ) {
// modules
var Bounds2 = require( 'DOT/Bounds2' );
var inherit = require( 'PHET_CORE/inherit' );
var IOObject = require( 'TANDEM/IOObject' );
var IsotopeNode = require( 'SHRED/view/IsotopeNode' );
var MovableDragHandler = require( 'SCENERY_PHET/input/MovableDragHandler' );
var Node = require( 'SCENERY/nodes/Node' );
Expand Down Expand Up @@ -50,7 +49,7 @@ define( function( require ) {
tandem: Tandem.required
}, options );

Node.call( this, IOObject.getOptions( options ) ); // Call super constructor.
Node.call( this ); // Call super constructor.
var self = this;

// Set up fields.
Expand Down

0 comments on commit 42ca7a7

Please sign in to comment.