Skip to content

Commit

Permalink
fix abstract type anti-pattern, see #189
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsamuel137 committed Nov 11, 2015
1 parent 27861cf commit b3a0596
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions js/common/module/ModeConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright 2014-2015, University of Colorado Boulder

/**
* Configuration for setting up a particular GravityAndOrbitsMode, enumerated in ModeList
* Configuration for setting up a particular GravityAndOrbitsMode, enumerated in ModeList.
* This is an abstract class, and is intended only to be used by sub-types.
* @abstract
*
* @author Sam Reid
* @author Aaron Davis
Expand Down Expand Up @@ -69,10 +71,12 @@ define( function( require ) {
},

/**
* @protected
* @returns {BodyConfiguration[]}
* @public
* @abstract
* @returns {Array<BodyConfiguration}
*/
getBodies: function() {}
getBodies: function() {
throw new Error( 'must be implemented by subtype' );
}
} );
} );

0 comments on commit b3a0596

Please sign in to comment.