Fix multi click Golden Cookie issue (issue 5)

This commit is contained in:
Aktanusa
2014-05-30 14:19:00 -04:00
parent fd71845140
commit 7fbe7bc3f9

View File

@@ -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);
} }