Skip to content

Commit

Permalink
Cleaning up in response to code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sfederwisch committed Jan 10, 2015
1 parent 16307d5 commit 042684d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/templates/dev/head/editor/EditorServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,8 @@ oppia.factory('computeGraphService', [function() {
nodes[stateName] = stateName;

var handlers = states[stateName].widget.handlers;
for (h = 0; h < handlers.length; h++) {
ruleSpecs = handlers[h].rule_specs;
for (var h = 0; h < handlers.length; h++) {
var ruleSpecs = handlers[h].rule_specs;
for (i = 0; i < ruleSpecs.length; i++) {
links.push({
source: stateName,
Expand Down
2 changes: 1 addition & 1 deletion core/templates/dev/head/editor/ExplorationStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ oppia.controller('ExplorationStatistics', [
$http.get(explorationDataUrl).then(function(response) {
var states = response.data.states;
var initStateName = response.data.init_state_name;
$scope.graphData = computeGraphService.compute(initStateName, states);
$scope.statsGraphData = computeGraphService.compute(initStateName, states);
});

var data = response.data;
Expand Down
3 changes: 1 addition & 2 deletions core/templates/dev/head/editor/exploration_statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ <h4>Common learner paths</h4>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<!-- TODO(sll): Instead of using the current graph, use the graph that corresponds to the version of the exploration being looked at (or the current graph if the version is 'none' or 'all'). -->
<div state-graph-viz graph-data="graphData" node-fill="darkseagreen" opacity-map="statsGraphOpacities" highlight-states="highlightStates" state-stats="stateStats" on-click-function="onClickStateInStatsGraph">
<div state-graph-viz graph-data="statsGraphData" node-fill="darkseagreen" opacity-map="statsGraphOpacities" highlight-states="highlightStates" state-stats="stateStats" on-click-function="onClickStateInStatsGraph">
</div>
</div>
</div>
Expand Down

0 comments on commit 042684d

Please sign in to comment.