Merge pull request #220 from mozilla/issue-219-fix-jshint
Fix the JSHint errors introduced in 11be9bbe39
This commit is contained in:
Коммит
5f61db079c
|
@ -23,7 +23,8 @@ define([
|
||||||
var day;
|
var day;
|
||||||
|
|
||||||
var remote = this.get('remote')
|
var remote = this.get('remote')
|
||||||
.eval("{ day: new Date(new Date().getTime() - 1000 * 60 * 60 * 24).getDate(), month: new Date(new Date().getTime() - 1000 * 60 * 60 * 24).getMonth() }")
|
/*jshint evil:true*/
|
||||||
|
.eval('{ day: new Date(new Date().getTime() - 1000 * 60 * 60 * 24).getDate(), month: new Date(new Date().getTime() - 1000 * 60 * 60 * 24).getMonth() }')
|
||||||
.then(function (result) {
|
.then(function (result) {
|
||||||
day = result.day;
|
day = result.day;
|
||||||
month = MONTHS[result.month];
|
month = MONTHS[result.month];
|
||||||
|
@ -58,7 +59,8 @@ define([
|
||||||
|
|
||||||
var remote = this.get('remote')
|
var remote = this.get('remote')
|
||||||
// Get client current date, we cannot use the date of the test runner.
|
// Get client current date, we cannot use the date of the test runner.
|
||||||
.eval("{ day: new Date().getDate(), month: new Date().getMonth() }")
|
/*jshint evil:true*/
|
||||||
|
.eval('{ day: new Date().getDate(), month: new Date().getMonth() }')
|
||||||
.then(function (result) {
|
.then(function (result) {
|
||||||
day = result.day;
|
day = result.day;
|
||||||
month = MONTHS[result.month];
|
month = MONTHS[result.month];
|
||||||
|
@ -94,7 +96,8 @@ define([
|
||||||
var day;
|
var day;
|
||||||
|
|
||||||
var remote = this.get('remote')
|
var remote = this.get('remote')
|
||||||
.eval("{ day: new Date(new Date().getTime() + 1000 * 60 * 60 * 24).getDate(), month: new Date(new Date().getTime() + 1000 * 60 * 60 * 24).getMonth() }")
|
/*jshint evil:true*/
|
||||||
|
.eval('{ day: new Date(new Date().getTime() + 1000 * 60 * 60 * 24).getDate(), month: new Date(new Date().getTime() + 1000 * 60 * 60 * 24).getMonth() }')
|
||||||
.then(function (result) {
|
.then(function (result) {
|
||||||
day = result.day;
|
day = result.day;
|
||||||
month = MONTHS[result.month];
|
month = MONTHS[result.month];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче