Closed ashi009 closed 7 years ago
Thanks for the report!
There seems to be a check that fails when the returned size
is falsey, can you try out if the branch fix/filter-zero-size
fixes all the issues for you?
Thanks for the quick fix!
I've created a demo at http://jsbin.com/zisojebuge/edit?html,output, and it looks good!
Scratch that. I might have tested with wrong branch. Let me apply the patch to my project and see.
Yep, this fixed the issue!
How to reproduce
I didn't look too deep into this, and here are my findings:
_loadPage()
tries to load page1
from the array datasource.cb()
(sucess()
from_loadPage()
) with an empty array when there is no match._loadPage()
will iterate through this empty array with out of boundary indices then fillundefined
tothis.set('_cachedItems.' + index, item)
.undefined
items.