Merge pull request #1535 from albertgasset/MOBILE-2585

MOBILE-2585 course: Fix prefetch of course option handlers
main
Juan Leyva 2018-09-26 16:26:19 +02:00 committed by GitHub
commit 1b64d83da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);