1
0
Fork 0

Fixed small issues

This commit is contained in:
Michaël Lemaire 2016-10-26 23:27:43 +02:00
parent 2a319c149c
commit 71493cc317
2 changed files with 5 additions and 2 deletions

View file

@ -70,7 +70,10 @@ module SpaceTac.Game {
// Iterator over each code
static forEachCode(callback: (code: AttributeCode) => void) {
for (var val in AttributeCode) {
callback(<AttributeCode>parseInt(val, 10));
var parsed = parseInt(val, 10);
if (!isNaN(parsed)) {
callback(<AttributeCode>parsed);
}
}
}

View file

@ -22,7 +22,7 @@
</style>
<!-- build:remove -->
<link rel="stylesheet" href="vendor/jasmine/lib/jasmine-core/jasmine.css">
<link rel="stylesheet" href="vendor/jasmine-core/lib/jasmine-core/jasmine.css">
<!-- /build -->
</head>
<body>