From 7235c9eac77adaf12b8b46e3c5d4cdcfecdc4ace Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Wed, 7 Feb 2018 10:57:03 -0700 Subject: [PATCH] Removed extra parameters, see https://github.com/phetsims/friction/issues/64 --- js/friction/view/book/BookNode.js | 2 +- js/friction/view/book/CoverNode.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/friction/view/book/BookNode.js b/js/friction/view/book/BookNode.js index f2e58a91..69ac7fa8 100644 --- a/js/friction/view/book/BookNode.js +++ b/js/friction/view/book/BookNode.js @@ -49,7 +49,7 @@ define( function( require ) { Node.call( this, options ); // add cover - this.addChild( new CoverNode( options.x, options.y, title, options ) ); + this.addChild( new CoverNode( title, options ) ); // init drag and a11y options for the draggable book if ( options.drag ) { diff --git a/js/friction/view/book/CoverNode.js b/js/friction/view/book/CoverNode.js index 417a81ea..0744f71e 100644 --- a/js/friction/view/book/CoverNode.js +++ b/js/friction/view/book/CoverNode.js @@ -31,19 +31,18 @@ define( function( require ) { var ANGLE = Math.PI / 12; /** - * @param {number} x - * @param {number} y * @param {string} title * @param {Object} options * @constructor */ - function CoverNode( x, y, title, options ) { + function CoverNode( title, options ) { options = _.extend( { stroke: 'gray', color: 'black' }, options ); + debugger; Node.call( this, { x: options.x, y: options.y } ); // add last page