secretlm
secretlm

Reputation: 2361

<ol> tags are nested together in template emberjs

I want to create template for my view in Ember like: each ol tags will contain 4 items. I created it on jsfiddle.net with the URL: http://jsfiddle.net/secretlm/2C4c4/14/

But I don't know why ol tags are nested together and how to fix it. Thanks so much.

Upvotes: 0

Views: 92

Answers (1)

sly7_7
sly7_7

Reputation: 12011

I think the mistake is on the indexNotDivisible4 function. I removed the (idx == length - 1), and it seems to work. see http://jsfiddle.net/Sly7/2C4c4/20/

Upvotes: 1

Related Questions