From 7db6fb315bf4f09426fbc7b9384f5097b736fde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Wed, 4 Dec 2019 05:40:00 +0900 Subject: [PATCH] Fix: { } -> object --- src/game/mouse/just_on_time/timer_stage.js | 28 ++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/game/mouse/just_on_time/timer_stage.js b/src/game/mouse/just_on_time/timer_stage.js index 1a4ab19..939a644 100644 --- a/src/game/mouse/just_on_time/timer_stage.js +++ b/src/game/mouse/just_on_time/timer_stage.js @@ -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; }