Skip to content

Commit

Permalink
Update ForcesModeChoice.js phetsims/masses-and-springs-basics#52
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Jan 16, 2019
1 parent a98a024 commit d7a0a3a
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions js/common/enum/ForcesModeChoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,8 @@ define( function( require ) {

// modules
var massesAndSprings = require( 'MASSES_AND_SPRINGS/massesAndSprings' );
var Enumeration = require( 'PHET_CORE/Enumeration' );

var ForcesModeChoice = {
FORCES: 'FORCES',
NET_FORCES: 'NET_FORCES'
};

massesAndSprings.register( 'ForcesModeChoice', ForcesModeChoice );

// @public {Array.<ForcesModeChoice>} - All values the enumeration can take.
ForcesModeChoice.VALUES = [
ForcesModeChoice.FORCES,
ForcesModeChoice.NET_FORCES
];

// verify that enum is immutable, without the runtime penalty in production code
if ( assert ) { Object.freeze( ForcesModeChoice ); }

return ForcesModeChoice;
return massesAndSprings.register( 'ForcesModeChoice', new Enumeration( [ 'FORCES', 'NET_FORCES' ] ) );
;
} );

0 comments on commit d7a0a3a

Please sign in to comment.