diff --git a/js/EnabledNode.js b/js/EnabledNode.js index 0e8f2129..08cd92a7 100644 --- a/js/EnabledNode.js +++ b/js/EnabledNode.js @@ -48,7 +48,6 @@ const EnabledNode = { // this call defines enabledProperty this.initializeEnabledPhetioObject( options ); - const cursor = this.cursor; const enabledListener = enabled => { this.interruptSubtreeInput(); this.pickable = enabled; @@ -56,9 +55,6 @@ const EnabledNode = { // Mark this Node as disabled in the ParallelDOM this.setAccessibleAttribute( 'aria-disabled', !enabled ); - - // handle cursor by supporting setting back to what the cursor was when component was made disabled. - this.cursor = enabled ? cursor : 'default'; }; this.enabledProperty.link( enabledListener ); diff --git a/js/EnabledNodeTests.js b/js/EnabledNodeTests.js index d0af02ca..727ce0f6 100644 --- a/js/EnabledNodeTests.js +++ b/js/EnabledNodeTests.js @@ -34,16 +34,12 @@ QUnit.test( 'EnabledNode', assert => { testEnabledNode( assert, node, 'For Node' ); const disabledOpacity = .2; - const customCursor = 'hi'; node = new EnabledNodeClass( { - disabledOpacity: disabledOpacity, - cursor: customCursor + disabledOpacity: disabledOpacity } ); - assert.ok( node.cursor === customCursor, 'cursor should be set' ); assert.ok( node.opacity === new Node().opacity, 'opacity should default to Node default' ); node.enabled = false; - assert.ok( node.cursor !== customCursor, 'enabled listener should have changed cursor' ); assert.ok( node.opacity === disabledOpacity, 'test disabled opacity' ); node.disposeEnabledNode(); diff --git a/js/buttons/ButtonNode.js b/js/buttons/ButtonNode.js index 3229a9f2..694a296c 100644 --- a/js/buttons/ButtonNode.js +++ b/js/buttons/ButtonNode.js @@ -48,9 +48,6 @@ class ButtonNode extends Node { super(); - //TODO https://github.com/phetsims/sun/issues/643 delete this when options are passed to super - this.cursor = options.cursor; - // @protected this.buttonModel = buttonModel;