From 7eb618ab5532b41a5f695c12d701f5dac2fbfae3 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Tue, 24 Mar 2015 19:51:30 -0600 Subject: [PATCH] Moved componentID and together.addComponent call from BLLDropperNode to EyeDropperNode, see https://github.com/phetsims/arch/issues/14 and https://github.com/phetsims/concentration/issues/34 --- js/EyeDropperNode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/EyeDropperNode.js b/js/EyeDropperNode.js index f8fb35041..f9363af6d 100644 --- a/js/EyeDropperNode.js +++ b/js/EyeDropperNode.js @@ -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 @@ -103,6 +106,8 @@ define( function( require ) { } Node.call( this, options ); + + together && together.addComponent( this ); } return inherit( Node, EyeDropperNode, {