googlearchive / core-list

Polymer virtualized list element
25 stars 20 forks source link

Uncaught TypeError: Cannot set property 'model' of undefined #48

Closed mbleigh closed 10 years ago

mbleigh commented 10 years ago

I have a core-list that is inside a set of paper-tabs. I'm calling list.updateSize() as an async function when the tab is switched to. However, this is throwing the following error:

Uncaught TypeError: Cannot set property 'model' of undefined (core-list.html:701)

When investigating, I learned that both physicalIndex and virtualIndex that are being passed into _updateItemData are NaN. Doing a little more investigating, I learned that this is likely because this._virtualStart is also NaN.

At this point I got a bit lost trying to trace things back to a root cause since the only time _virtualStart is explicitly set is to 0 in the ready function.

The core-list in question is actually open source, so that might make things easier to investigate.