From c5a2d5ba18dbd6e1cbf118431232bb41505219eb Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 19 Sep 2019 13:54:18 -0800 Subject: [PATCH] var -> const in require statements, use arrow function in define require call, https://github.com/phetsims/tasks/issues/1010 --- js/common/view/TriangleNode.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/common/view/TriangleNode.js b/js/common/view/TriangleNode.js index 62e879fee..910437a94 100644 --- a/js/common/view/TriangleNode.js +++ b/js/common/view/TriangleNode.js @@ -5,16 +5,16 @@ * * @author Sam Reid (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var Matrix3 = require( 'DOT/Matrix3' ); - var Path = require( 'SCENERY/nodes/Path' ); - var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' ); - var Shape = require( 'KITE/Shape' ); - var Side = require( 'PROPORTION_PLAYGROUND/common/model/Side' ); + const inherit = require( 'PHET_CORE/inherit' ); + const Matrix3 = require( 'DOT/Matrix3' ); + const Path = require( 'SCENERY/nodes/Path' ); + const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' ); + const Shape = require( 'KITE/Shape' ); + const Side = require( 'PROPORTION_PLAYGROUND/common/model/Side' ); // constants var TRIANGLE_LENGTH = 17;