Permalink
Browse files

expose reviewMode to relatedvideos

  • Loading branch information...
nsfmc committed Feb 7, 2012
1 parent a11fc6f commit 7f585efd08b138f3f0c4d5e2af9ca71bb5710457
Showing with 4 additions and 1 deletion.
  1. +3 −0 khan-exercise.js
  2. +1 −1 utils/relatedvideos.js
View
@@ -255,6 +255,9 @@ var Khan = (function() {
var Khan = {
modules: {},
+ // expose reviewMode to other extensions
+ reviewMode: reviewMode,
+
// So modules can use file paths properly
urlBase: urlBase,
View
@@ -120,7 +120,7 @@ jQuery.extend( Khan, { relatedVideos: {
this.renderInSidebar();
// Review queue overlaps with the content here
- if ( !reviewMode ) {
+ if ( !Khan.reviewMode ) {
this.renderInHeader();
}
}

0 comments on commit 7f585ef

Please sign in to comment.