Permalink
Browse files

Merge pull request #25754 from xymostech/master

Fix Exercises not defined bug
  • Loading branch information...
2 parents c6219b4 + c13ae54 commit 7c29d23062c332df5fc750a21be43d4f6007fe04 @xymostech xymostech committed Jul 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 khan-exercise.js
View
@@ -1930,7 +1930,7 @@ var Khan = (function() {
problem_type: problemID,
// What mode we're in
- mode: Exercises.mode,
+ mode: !testMode && Exercises.mode,
// Whether we are currently working on a topic, as opposed to an exercise
topic_mode: (!testMode && Exercises.mode != "review" && !Exercises.practiceMode) ? 1 : 0,
@@ -1954,7 +1954,7 @@ var Khan = (function() {
cards_left: !testMode && (Exercises.incompleteStack.length - 1),
//Get Custom Stack Id if it exists
- custom_stack_id: Exercises.completeStack.getCustomStackID()
+ custom_stack_id: !testMode && Exercises.completeStack.getCustomStackID()
};
}

0 comments on commit 7c29d23

Please sign in to comment.