Fix multi click Golden Cookie issue (issue 5)
This commit is contained in:
@@ -894,7 +894,7 @@ CM.Disp.CreateGCTimer = function() {
|
|||||||
CM.Disp.GCTimer.style.fontFamily = '\"Kavoon\", Georgia, serif';
|
CM.Disp.GCTimer.style.fontFamily = '\"Kavoon\", Georgia, serif';
|
||||||
CM.Disp.GCTimer.style.fontSize = '35px';
|
CM.Disp.GCTimer.style.fontSize = '35px';
|
||||||
CM.Disp.GCTimer.style.cursor = 'pointer';
|
CM.Disp.GCTimer.style.cursor = 'pointer';
|
||||||
CM.Disp.GCTimer.onclick = Game.goldenCookie.click;
|
CM.Disp.GCTimer.onclick = function () { Game.goldenCookie.click(); CM.Disp.GCTimer.style.display = 'none'; };
|
||||||
|
|
||||||
l('game').appendChild(CM.Disp.GCTimer);
|
l('game').appendChild(CM.Disp.GCTimer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user