Skip to content

Commit

Permalink
Converted attribute to var, see #64
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 14, 2018
1 parent 9efce28 commit a6ad7ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/friction/view/magnifier/MagnifierNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ define( function( require ) {
} ) );

// add magnifier's target
// TODO: visibility annotation
this.target = new MagnifierTargetNode(
var magnifierTargetNode = new MagnifierTargetNode(
targetX,
targetY,
this.param.width * this.param.scale,
Expand All @@ -252,7 +251,7 @@ define( function( require ) {
new Vector2( this.param.round, this.param.height ),
new Vector2( this.param.width - this.param.round, this.param.height )
);
this.addChild( this.target );
this.addChild( magnifierTargetNode );

// add the arrow at the end
this.container.addChild( arrowIcon );
Expand Down

0 comments on commit a6ad7ab

Please sign in to comment.