From 1b7387dc4059460316c9f9b52001eb335f15586f Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 18 May 2017 11:30:02 +1200 Subject: [PATCH] fix some eslint stuff. --- calendar.js | 1 + module.js | 6 +++--- .../moodle-mod_attendance-groupfilter-debug.js | 1 + .../moodle-mod_attendance-groupfilter.js | 1 + yui/src/groupfilter/js/groupfilter.js | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/calendar.js b/calendar.js index ea6c972..94a497b 100644 --- a/calendar.js +++ b/calendar.js @@ -1,4 +1,5 @@ /* global YUI */ +// eslint-disable-next-line new-cap YUI().use('yui2-container', 'yui2-calendar', function(Y) { var YAHOO = Y.YUI2; diff --git a/module.js b/module.js index 45b6f55..a2d51e8 100644 --- a/module.js +++ b/module.js @@ -1,6 +1,6 @@ -M.mod_attendance = {}; +M.mod_attendance = {}; // eslint-disable-line camelcase -M.mod_attendance.init_manage = function(Y) { +M.mod_attendance.init_manage = function(Y) { // eslint-disable-line camelcase Y.on('click', function(e) { if (e.target.get('checked')) { @@ -15,7 +15,7 @@ M.mod_attendance.init_manage = function(Y) { }, '#cb_selector'); }; -M.mod_attendance.set_preferences_action = function(action) { +M.mod_attendance.set_preferences_action = function(action) { // eslint-disable-line camelcase var item = document.getElementById('preferencesaction'); if (item) { item.setAttribute('value', action); diff --git a/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter-debug.js b/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter-debug.js index cb9e57b..13c2421 100644 --- a/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter-debug.js +++ b/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter-debug.js @@ -1,6 +1,7 @@ YUI.add('moodle-mod_attendance-groupfilter', function (Y, NAME) { /* global M */ +// eslint-disable-next-line camelcase M.mod_attendance = M.mod_attendance || {}; M.mod_attendance.groupfilter = { groupmappings: null, diff --git a/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter.js b/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter.js index cb9e57b..13c2421 100644 --- a/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter.js +++ b/yui/build/moodle-mod_attendance-groupfilter/moodle-mod_attendance-groupfilter.js @@ -1,6 +1,7 @@ YUI.add('moodle-mod_attendance-groupfilter', function (Y, NAME) { /* global M */ +// eslint-disable-next-line camelcase M.mod_attendance = M.mod_attendance || {}; M.mod_attendance.groupfilter = { groupmappings: null, diff --git a/yui/src/groupfilter/js/groupfilter.js b/yui/src/groupfilter/js/groupfilter.js index 6894dd3..6ad931a 100644 --- a/yui/src/groupfilter/js/groupfilter.js +++ b/yui/src/groupfilter/js/groupfilter.js @@ -1,4 +1,5 @@ /* global M */ +// eslint-disable-next-line camelcase M.mod_attendance = M.mod_attendance || {}; M.mod_attendance.groupfilter = { groupmappings: null,