javve/list — Issue #16: Error: a.getByClass(p[q], r.elm)[0] is undefined
Author: billsaysthis
Created: 2011-11-09 00:58:29+00:00
State: open

Not sure what other info I can give but I'm using the current version of List as of this afternoon, here is my JS:

```
var setupList = function(listId) {
var options = {item: '#emptyReview',
valueNames: ['status']};
var featureList = new List(listId, options);

$('#toggleSuspended').click(function() {
var doFilter = $(this).html() == 'Show Suspended';
if(doFilter) {
$('#toggleSuspended').html('Hide Suspended');
featureList.filter(function(values) {
if (values.category == "Suspended") {
return false;
} else {
return true;
}
});
} else {
$('#toggleSuspended').html('Show Suspended');
featureList.filter();
return false;
}
});
}

$(function() {
setupList('#someId');
}