Skip to content

Commit

Permalink
Moved componentID and together.addComponent call from BLLDropperNode …
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 25, 2015
1 parent 8d6e59f commit 7eb618a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/EyeDropperNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ define( function( require ) {
emptyProperty: new Property( false ), // does the dropper appear to be empty?
buttonTouchAreaDilation: 30, // dilation of the button's radius for touchArea
fluidColor: 'yellow', // {Color|String} color of the fluid in the glass
componentID: null, //componentID for the dropper, see together
buttonComponentID: null // componentID for the dropper button, see together
}, options );

this.componentID = options.componentID;

var thisNode = this;

// @public
Expand Down Expand Up @@ -103,6 +106,8 @@ define( function( require ) {
}

Node.call( this, options );

together && together.addComponent( this );
}

return inherit( Node, EyeDropperNode, {
Expand Down

0 comments on commit 7eb618a

Please sign in to comment.