robnyman/firefinder — pull request #2 by scaillerie (2012-11-13 10:14:44+00:00)
Title: Bug not clearing firefinder-match class when filtering

## Context
Due to an incorrect check in the initial **firefinder** state, **firefinder** failed to reinitialize its state (`state` is an object and not an array, thus checking on `tabIndex` is incorrect). See [Firefinder group thread](https://groups.google.com/forum/?fromgroups=#!topic/firefinder/Z5ads1ZdI9Q).
## Correction
We here check if the property `matchingElements` of `state` is existing or not.
But due to some a strange behaviour of Firefox, the only way to test the existence of this field is to test its length, and thus should be embedded in a `try... catch` block.