Linting fixes to improve quality report

This commit is contained in:
Kshitij Sobti
2018-07-16 13:39:38 +05:30
parent bf6af13ed1
commit fcff921fdb
16 changed files with 32 additions and 35 deletions

View File

@@ -52,7 +52,7 @@ describe('Program Progress View', () => {
model: programModel,
courseModel: courseData,
certificateCollection,
programRecordUrl: '/foo/bar'
programRecordUrl: '/foo/bar',
});
beforeEach(() => {

View File

@@ -101,7 +101,7 @@ class UnenrollView extends Backbone.View {
this.mainPageSelector = '#dashboard-main';
this.triggerSelector = '.action-unenroll';
$(this.triggerSelector).each(function attachTriggerHandler(index, element) {
$(this.triggerSelector).each((index, element) => {
$(element).on('click', view.handleTrigger.bind($(element)));
});