Open waynetheisinger opened 8 years ago
actually, this is not just a typo, when I change to 1
, I now get the first item in the list twice... column-rule: 1px 1px solid #eee;
so you are intending to use 2
, not sure why the first is repeated though and not sure how to stop the out of index
error if I change to 2
-- I'm now reading up on sass systax in order to debug...
This seems to do what I want
@for $i from 1 through length($items) {
@if $i != 1 {
$item: nth($items, $i);
@if $item != null {
$full: $full $item;
}
}
}
I'm having the same issue with the latest version. The fix by @waynetheisinger works.
I think this work around is red herring for the real issue. Sass lists are 1 indexed so nth($list, length($list))
is within bounds. This is not the case for 0 indexed arrays common in other languages.
@xzyfer I'm using the fix by @waynetheisinger on a project temporarily. But I agree, we need to figure out where it's really coming from.
I'm getting:
Changing
To
Fixes it... typo?