Fixed small issues
This commit is contained in:
parent
2a319c149c
commit
71493cc317
|
@ -70,7 +70,10 @@ module SpaceTac.Game {
|
||||||
// Iterator over each code
|
// Iterator over each code
|
||||||
static forEachCode(callback: (code: AttributeCode) => void) {
|
static forEachCode(callback: (code: AttributeCode) => void) {
|
||||||
for (var val in AttributeCode) {
|
for (var val in AttributeCode) {
|
||||||
callback(<AttributeCode>parseInt(val, 10));
|
var parsed = parseInt(val, 10);
|
||||||
|
if (!isNaN(parsed)) {
|
||||||
|
callback(<AttributeCode>parsed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- build:remove -->
|
<!-- 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 -->
|
<!-- /build -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue