fix odd() and even() calc

This commit is contained in:
yuanchuan 2017-05-21 12:55:17 +08:00
parent 33d76d9374
commit 124bccb3dc
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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);
}

2
css-doodle.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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);
}