fix odd() and even() calc
This commit is contained in:
parent
33d76d9374
commit
124bccb3dc
2
Makefile
2
Makefile
|
|
@ -13,7 +13,7 @@ build: $(LIB)
|
|||
minify: $(TARGET)
|
||||
@npm run minify
|
||||
@./tools/trim
|
||||
@cp $(TARGET_MIN) docs/components/
|
||||
@cp $(TARGET_MIN) docs/lib/
|
||||
|
||||
$(LIB):
|
||||
@npm install
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@ function col(x, y) {
|
|||
}
|
||||
|
||||
function even(x, y, count) {
|
||||
return _ => is.even(count);
|
||||
return _ => is.even(count - 1);
|
||||
}
|
||||
|
||||
function odd(x, y, count) {
|
||||
return _ => is.odd(count);
|
||||
return _ => is.odd(count - 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -20,9 +20,9 @@ export function col(x, y) {
|
|||
}
|
||||
|
||||
export function even(x, y, count) {
|
||||
return _ => is.even(count);
|
||||
return _ => is.even(count - 1);
|
||||
}
|
||||
|
||||
export function odd(x, y, count) {
|
||||
return _ => is.odd(count);
|
||||
return _ => is.odd(count - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue