Skip to content

Commit

Permalink
MDL-59761 eslint: Auto-fix some minor lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Sep 6, 2017
1 parent 6f60131 commit d9dff92
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion admin/tool/lp/amd/src/planactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ define(['jquery',
notification.confirm(
strings[0], // Confirm.
strings[1], // Reopen plan X?
strings[2], // reopen.
strings[2], // Reopen.
strings[3], // Cancel.
function() {
self._doReopenPlan(planData);
Expand Down
2 changes: 1 addition & 1 deletion blocks/myoverview/amd/src/event_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ define(['jquery', 'core/notification', 'core/templates',
// Render the events.
return render(root, calendarEvents).then(function(renderCount) {
if (renderCount < calendarEvents.length) {
// if the number of events that was rendered is less than
// If the number of events that was rendered is less than
// the number we sent for rendering we can assume that there
// are no groups to add them in. Since the ordering of the
// events is guaranteed it means that any future requests will
Expand Down
3 changes: 2 additions & 1 deletion course/amd/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
*/
var findNextFocusable = function(mainElement) {
var tabables = $("a:visible");
var isInside = false, foundElement = null;
var isInside = false;
var foundElement = null;
tabables.each(function() {
if ($.contains(mainElement[0], this)) {
isInside = true;
Expand Down
4 changes: 2 additions & 2 deletions lib/amd/src/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ define(['core/mustache',
treated += content.substring(0, index);
content = content.substr(index);
strIndex = '';
walker = 4; // 4 is the length of '[[_s'.
walker = 4; // 4 is the length of '[[_s'.

// Walk the characters to manually extract the index of the string from the placeholder.
char = content.substr(walker, 1);
Expand All @@ -455,7 +455,7 @@ define(['core/mustache',
strFinal = '';
}
treated += strFinal;
content = content.substr(6 + strIndex.length); // 6 is the length of the placeholder without the index: '[[_s]]'.
content = content.substr(6 + strIndex.length); // 6 is the length of the placeholder without the index: '[[_s]]'.

// Find the next placeholder.
index = content.search(pattern);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/custom_interactio
// If the element isn't in the view window.
if (relativeTop > container.innerHeight()) {
var height = notificationElement.outerHeight();
// offset enough to make sure the notification will be in view.
// Offset enough to make sure the notification will be in view.
height = height * 4;
var scrollTo = position.top - height;
container.scrollTop(scrollTo);
Expand Down

0 comments on commit d9dff92

Please sign in to comment.