ajax load list.js
hi i am trying use list on ajax pages, i have managed to get it to work but it gives me this error on pages that does not have the list class, any help thanks
error: Cannot read property 'childNodes' of undefined
Are you doing indexAsync option? I modified line 1396 of list.js https://github.com/javve/list.js/blob/master/dist/list.js to say "parseAsync(itemElements, valueNames)" instead of "init.items.indexAsync(itemElements, valueNames);"
yeah the issue I was facing is i load pages via ajax so on some pages list.js was not required so it would give a error message On 3 Jun 2014 21:37, "Rebecca" [email protected] wrote:
Are you doing indexAsync option? I modified line 1396 of list.js https://github.com/javve/list.js/blob/master/dist/list.js to say "parseAsync(itemElements, valueNames)" instead of "init.items.indexAsync(itemElements, valueNames);"
— Reply to this email directly or view it on GitHub https://github.com/javve/list.js/issues/230#issuecomment-45017001.
Sounds like an implementation problem to me. I'll close this issue.