Skip to content

Commit

Permalink
typescript fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maximz committed Mar 31, 2016
1 parent f31f40b commit a1d46fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions course_selection/static/js/controllers/CalendarCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,12 @@ class CalendarCtrl {
}

if (curr[section_type] == null) {
this.compositeEventSources.previewAllCourseSection(course_id, section_type);
this.compositeEventSources.previewAllCourseSection(<any> course_id, section_type);
}
// we want to the events associated with the old section_id,
// and add the new ones
else {
this.compositeEventSources.enrollInCourseSection(course_id, section_type, curr[section_type]);
this.compositeEventSources.enrollInCourseSection(<any> course_id, section_type, curr[section_type]);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion course_selection/static/js/models/CompositeEventSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class CompositeEventSources implements IEventSources {
var courseIndices = this.courseIdToIndices[courseId];
if (!courseIndices) {
throw "trying to remove " + section_type + " in course, but course is not found";
return;
//return; // unreachable
}

for (var i = courseIndices.start; i <= courseIndices.end; i++) {
Expand Down

0 comments on commit a1d46fa

Please sign in to comment.