getting "ReferenceError: Object is invalid" while resetting a listBox
i'm trying to create a refresh button for a list (that shows the render Q better for my needs). it works fine, i'm removing all the list items and then re-entering them. for some reason when i click the same refresh button for the 6th/7th time i'm getting:
ReferenceError: Object is invalid
(it seems to be related to line 66 in the code - " curItem = folderPathListbox.add ('item', renderItem.toString()); // Column 1")
i'm lost here...
attached are the JSX and a sample project i use to test it:
JSX - http://adobe.ly/1tC5jcj
AEP - http://adobe.ly/1UfMfXF