Fix: { } -> object

This commit is contained in:
2019-12-04 05:40:00 +09:00
parent 849935da00
commit 7db6fb315b
+24 -4
View File
@@ -144,7 +144,12 @@ TimerStage.prototype.gradeGreat = function(timeLeft) {
startTime + "초 X " + TimerStage.REWARD_GREAT + "배 = " + score, startTime + "초 X " + TimerStage.REWARD_GREAT + "배 = " + score,
"Brown" "Brown"
); );
this.recordArray.push( { timeLeft, score } );
// this.recordArray.push( { timeLeft, score } );
var record = {};
record.timeLeft = timeLeft;
record.score = score;
this.recordArray.push(record);
this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_GREAT_MS; this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_GREAT_MS;
} }
@@ -159,7 +164,12 @@ TimerStage.prototype.gradeGood = function(timeLeft) {
startTime + "초 X " + TimerStage.REWARD_GOOD + "배 = " + score, startTime + "초 X " + TimerStage.REWARD_GOOD + "배 = " + score,
"Chocolate" "Chocolate"
); );
this.recordArray.push( { timeLeft, score } );
// this.recordArray.push( { timeLeft, score } );
var record = {};
record.timeLeft = timeLeft;
record.score = score;
this.recordArray.push(record);
this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_GOOD_MS; this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_GOOD_MS;
} }
@@ -174,7 +184,12 @@ TimerStage.prototype.gradeSoSo = function(timeLeft) {
startTime + "초 X " + TimerStage.REWARD_SOSO + "배 = " + score, startTime + "초 X " + TimerStage.REWARD_SOSO + "배 = " + score,
"GoldenRod" "GoldenRod"
); );
this.recordArray.push( { timeLeft, score } );
// this.recordArray.push( { timeLeft, score } );
var record = {};
record.timeLeft = timeLeft;
record.score = score;
this.recordArray.push(record);
this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_SOSO_MS; this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_SOSO_MS;
} }
@@ -189,7 +204,12 @@ TimerStage.prototype.gradeBad = function(timeLeft) {
startTime + "초 X " + TimerStage.REWARD_BAD + "배 = " + score, startTime + "초 X " + TimerStage.REWARD_BAD + "배 = " + score,
"LightGoldenRodYellow" "LightGoldenRodYellow"
); );
this.recordArray.push( { timeLeft, score } );
// this.recordArray.push( { timeLeft, score } );
var record = {};
record.timeLeft = timeLeft;
record.score = score;
this.recordArray.push(record);
this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_BAD_MS; this.timeLimitMS = this.timeLimitMS + TimerStage.TIME_EXTENSION_BAD_MS;
} }