Iterating with #each on array of undefined values - broken?


#1

I see that propably during update from 1.10 to 1.13.9 following thing doesn’t work:

controller:

rows: new Array(20)

template:

{{#each row in rows}} <tr class="fake-row"> </tr> {{/each}}

When the array consists of undefined values, it just doesn’t render. Is this a feature, or a bug? :smile:

edit: I see now using rows: [undefined, undefined, undefined] works, so this propably works as expected. Similar to Array.prototype.map, described in this paragraph: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Description Anyway, I’m sure it was working in 1.11.3