diff --git a/src/core/course/providers/options-delegate.ts b/src/core/course/providers/options-delegate.ts index 29875d827..7f2f9968c 100644 --- a/src/core/course/providers/options-delegate.ts +++ b/src/core/course/providers/options-delegate.ts @@ -277,7 +277,7 @@ export class CoreCourseOptionsDelegate extends CoreDelegate { handlersToDisplay.push({ data: data, priority: handler.priority, - prefetch: handler.prefetch + prefetch: handler.prefetch && handler.prefetch.bind(handler) }); }).catch((err) => { this.logger.error('Error getting data for handler', handler.name, err);