Skip to content

Commit

Permalink
ESLint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Brady committed Apr 18, 2017
1 parent 6ae26b6 commit 81a66df
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ function populateArchive() {
}
// else, if a specific platform is selected...
else {
/* eslint-disable */
var thisPlatformRowArray = document.getElementsByClassName(selection); // create an array containing all of the selected platform's rows
/* eslint-enable */
for (i = 0; i < thisPlatformRowArray.length; i++) {
thisPlatformRowArray[i].className = thisPlatformRowArray[i].className.replace( /(?:^|\s)hide(?!\S)/g , '' ); // make sure that these rows are not hidden
}
Expand All @@ -302,14 +304,18 @@ function populateArchive() {

// for each of the non-selected platforms...
notSelectedArray.forEach(function(thisPlatform) {
/* eslint-disable */
var thisPlatformRowArray = document.getElementsByClassName(thisPlatform); // create an array containing all of this platform's rows
/* eslint-enable */

for (i = 0; i < thisPlatformRowArray.length; i++) {
thisPlatformRowArray[i].className += " hide"; // hide all of the rows for this platform
}
});

/* eslint-disable */
var releaseRows = archiveTableBody.getElementsByClassName("release-row"); // create an array containing all of the release rows
/* eslint-enable */

// for each of the release rows...
for (i = 0; i < releaseRows.length; i++) {
Expand Down Expand Up @@ -606,7 +612,6 @@ function populateNightly() {
});
}

var assetCounter2 = 0;
// When releases page loads, run:
/* eslint-disable no-unused-vars */
function onLatestLoad() {
Expand Down
Loading

0 comments on commit 81a66df

Please sign in to comment.