Fix: { } -> object
This commit is contained in:
@@ -144,7 +144,12 @@ TimerStage.prototype.gradeGreat = function(timeLeft) {
|
||||
startTime + "초 X " + TimerStage.REWARD_GREAT + "배 = " + score,
|
||||
"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;
|
||||
}
|
||||
@@ -159,7 +164,12 @@ TimerStage.prototype.gradeGood = function(timeLeft) {
|
||||
startTime + "초 X " + TimerStage.REWARD_GOOD + "배 = " + score,
|
||||
"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;
|
||||
}
|
||||
@@ -174,7 +184,12 @@ TimerStage.prototype.gradeSoSo = function(timeLeft) {
|
||||
startTime + "초 X " + TimerStage.REWARD_SOSO + "배 = " + score,
|
||||
"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;
|
||||
}
|
||||
@@ -189,7 +204,12 @@ TimerStage.prototype.gradeBad = function(timeLeft) {
|
||||
startTime + "초 X " + TimerStage.REWARD_BAD + "배 = " + score,
|
||||
"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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user