Skip to content

Commit

Permalink
Removed extra parameters, see #64
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 7, 2018
1 parent b8a2def commit 7235c9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/friction/view/book/BookNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
5 changes: 2 additions & 3 deletions js/friction/view/book/CoverNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7235c9e

Please sign in to comment.