Skip to content

Commit

Permalink
add TODO items for #78
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Apr 23, 2017
1 parent cc477fd commit 32bb3a2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/common/view/PointToolNode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2013-2015, University of Colorado Boulder

//TOOD #78 implement dispose
/**
* Tool that displays the (x,y) coordinates of a grid-point on the graph.
* Origin is at the tip of the tool (bottom center.)
Expand Down
1 change: 1 addition & 0 deletions js/linegame/view/ChallengeGraphNode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2013-2015, University of Colorado Boulder

//TODO implement dispose for this node and its subtypes
/**
* Base type for graph nodes in game challenges.
* Renders the answer line, guess line, and slope tool.
Expand Down
1 change: 1 addition & 0 deletions js/linegame/view/ChallengeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ define( function( require ) {
maxWidth: 400 // determined empirically
} );

//TODO #78 dispose of PointToolNode
// point tools
var linesVisibleProperty = new Property( true );
var pointToolNode1 = new PointToolNode( challenge.pointTool1, challenge.modelViewTransform, challenge.graph, linesVisibleProperty, { scale: LineGameConstants.POINT_TOOL_SCALE } );
Expand Down
3 changes: 2 additions & 1 deletion js/linegame/view/GraphTheLineNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ define( function( require ) {
slopeUndefinedVisible: false
} ) );

// Guess equation
var guessLineProperty = new Property( Line.Y_EQUALS_X_LINE ); // start with any non-null line
this.equationNode = ChallengeNode.createEquationNode( guessLineProperty, {
equationForm: challenge.equationForm,
Expand Down Expand Up @@ -159,6 +158,8 @@ define( function( require ) {

// @private called by dispose
this.disposeGraphTheLineNode = function() {
//TODO #78 this.equationNode.dispose();
//TODO #78 this.graphNode.dispose();
challenge.guessProperty.unlink( guessObserver );
model.playStateProperty.unlink( playStateObserver );
};
Expand Down
2 changes: 2 additions & 0 deletions js/linegame/view/MakeTheEquationNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ define( function( require ) {
} ) );
answerBoxNode.visible = false;

//TODO #78 dispose of the EquationNode returned by createInteractiveEquationNode
// Guess
var guessBoxNode = new EquationBoxNode( yourEquationString, challenge.guessProperty.get().color, boxSize,
createInteractiveEquationNode( challenge.equationForm, challenge.manipulationMode, challenge.guessProperty, challenge.graph,
Expand Down Expand Up @@ -148,6 +149,7 @@ define( function( require ) {

// @private called by dispose
this.disposeMakeTheEquationNode = function() {
//TODO #78 graphNode.dispose();
challenge.guessProperty.unlink( guessObserver );
model.playStateProperty.unlink( playStateObserver );
};
Expand Down
1 change: 1 addition & 0 deletions js/pointslope/view/PointSlopeEquationNode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2013-2017, University of Colorado Boulder

//TODO #78 implement dispose
/**
* Renderer for point-slope equations, with optional interactivity of point and slope.
* General point-slope form is: (y - y1) = m(x - x1)
Expand Down
1 change: 1 addition & 0 deletions js/slope/view/SlopeEquationNode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2013-2017, University of Colorado Boulder

//TODO #78 implement dispose
/**
* Renderer for slope equations.
* General form is m = (y2 - y1) / (x2 - x1) = rise/run
Expand Down
1 change: 1 addition & 0 deletions js/slopeintercept/view/SlopeInterceptEquationNode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2013-2017, University of Colorado Boulder

//TODO #78 implement dispose
/**
* Renderer for slope-intercept equations, with optional interactivity of slope and intercept.
* General slope-intercept form is: y = mx + b
Expand Down

0 comments on commit 32bb3a2

Please sign in to comment.