awbush/jquery-fastLiveFilter — pull request #22 by davesmiths (2014-06-20 10:30:32+00:00)
Title: Fix issue when refreshing a page

Hi Anthony

This is my first pull request so I hope I'm doing this right.

Recently I used fastLiveFilter in a project I'm working on and discovered an issue. When refreshing the page, in Firefox at least (not a hard refresh), the input value stayed the same. The issue was that fastLiveFilter outputted the same as for an empty input. The callback function was called but the resulting list was unchanged / unfiltered.

The fix here removes the callback(len); line and adds a triggerHandler to initialise. It worked for me. When the page was refreshed fastLiveFilter checked the current value of the input and did its fab thing.

all the best
Dave