From a5deac3684e42b84596ba95524af8066d8c4cc58 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Fri, 24 Aug 2018 18:31:13 -0600 Subject: [PATCH] use object and attribute options for animation targets, https://github.com/phetsims/twixt/issues/18 Signed-off-by: Chris Malley --- js/common/view/DoubleNumberLineAccordionBox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common/view/DoubleNumberLineAccordionBox.js b/js/common/view/DoubleNumberLineAccordionBox.js index d88dd96b..1adf6424 100644 --- a/js/common/view/DoubleNumberLineAccordionBox.js +++ b/js/common/view/DoubleNumberLineAccordionBox.js @@ -261,8 +261,8 @@ define( function( require ) { stepper: 'timer', // animation is controlled by the global phet-core Timer duration: 0.002 * Math.abs( destinationX - markerEditorNode.x ), // 2ms per 1 unit of distance easing: Easing.QUADRATIC_IN_OUT, - setValue: function( value ) { markerEditorNode.x = value; }, - getValue: function() { return markerEditorNode.x; }, + object: markerEditorNode, + attribute: 'x', to: destinationX } );