Fixed JavaScript "no-underscore-dangle" violations.

This commit is contained in:
Tim Graham 2015-07-20 16:31:56 -04:00
parent 85d6b5d1ed
commit 5dceb7c828
2 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
"no-extend-native": [2, {"exceptions": ["Date", "String"]}], "no-extend-native": [2, {"exceptions": ["Date", "String"]}],
"no-multi-spaces": [2], "no-multi-spaces": [2],
"no-octal-escape": [2], "no-octal-escape": [2],
"no-underscore-dangle": [1], "no-underscore-dangle": [2],
"no-unused-vars": [2, {"vars": "local", "args": "none"}], "no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-script-url": [1], "no-script-url": [1],
"no-shadow": [2, {"hoist": "functions"}], "no-shadow": [2, {"hoist": "functions"}],

View File

@ -68,13 +68,13 @@ var CalendarNamespace = {
var startingPos = new Date(year, month - 1, 1 - CalendarNamespace.firstDayOfWeek).getDay(); var startingPos = new Date(year, month - 1, 1 - CalendarNamespace.firstDayOfWeek).getDay();
var days = CalendarNamespace.getDaysInMonth(month, year); var days = CalendarNamespace.getDaysInMonth(month, year);
var _cell; var nonDayCell;
// Draw blanks before first of month // Draw blanks before first of month
tableRow = quickElement('tr', tableBody); tableRow = quickElement('tr', tableBody);
for (i = 0; i < startingPos; i++) { for (i = 0; i < startingPos; i++) {
_cell = quickElement('td', tableRow, ' '); nonDayCell = quickElement('td', tableRow, ' ');
_cell.className = "nonday"; nonDayCell.className = "nonday";
} }
// Draw days of month // Draw days of month
@ -105,8 +105,8 @@ var CalendarNamespace = {
// Draw blanks after end of month (optional, but makes for valid code) // Draw blanks after end of month (optional, but makes for valid code)
while (tableRow.childNodes.length < 7) { while (tableRow.childNodes.length < 7) {
_cell = quickElement('td', tableRow, ' '); nonDayCell = quickElement('td', tableRow, ' ');
_cell.className = "nonday"; nonDayCell.className = "nonday";
} }
calDiv.appendChild(calTable); calDiv.appendChild(calTable);