MOBILE-2585 course: Fix prefetch of course option handlers

main
Albert Gasset 2018-09-25 15:03:02 +02:00
parent cba29471d8
commit 6f4d4b19da
1 changed files with 1 additions and 1 deletions

View File

@ -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);