Most of the main hull of navigation working

This commit is contained in:
Eric Fredricksen
2010-07-02 21:39:26 -07:00
parent 1d4908bfb1
commit 9e7bb12434
7 changed files with 38 additions and 12 deletions
+4 -4
View File
@@ -128,10 +128,8 @@ function loadRoster() {
try {
r = JSON.parse(r);
} catch (err) {
r = [];
r = {};
}
//if (!$.isArray(roster))
// roster = [];
return r;
}
}
@@ -141,7 +139,9 @@ function storeRoster(roster) {
}
function addToRoster(newguy) {
storeRoster(loadRoster().concat([newguy]));
var r = loadRoster();
r[newguy.name] = newguy;
storeRoster(r);
}
var K = {};