From 7710efc12b64e7c467a2e6875c92c7a10820a89e Mon Sep 17 00:00:00 2001 From: Eric Fredricksen Date: Tue, 6 Jul 2010 13:30:29 -0700 Subject: [PATCH] Fix unload bug and spelling of neckerchief --- config.js | 2 +- main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 99a1710..19161fe 100644 --- a/config.js +++ b/config.js @@ -503,7 +503,7 @@ K.Monsters = [ "Beholder|10|eyestalk", "Black Pudding|10|saliva", "Blink Dog|4|eyelid", - "Cub Scout|1|neckercheif", + "Cub Scout|1|neckerchief", "Girl Scout|2|cookie", "Boy Scout|3|merit badge", "Eagle Scout|4|merit badge", diff --git a/main.js b/main.js index 494f211..bfe12ef 100644 --- a/main.js +++ b/main.js @@ -1155,7 +1155,7 @@ function LoadGame(sheet) { StartTimer(); } -$(document).unload(function () { +$(window).unload(function () { StopTimer(); SaveGame(); });