1) avoid stale data 2) fix backspace issue
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 20 Jan 2012 21:04:49 +0000 (16:04 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 23 Jan 2012 17:27:00 +0000 (12:27 -0500)
commit8b3b80ba3403a7e7c4a29a046ee0f4d8b9ab9edd
tree9fe93a6aabacbb6b922124601edbdc5f95f7b478
parent7631741bd830f99ca771af69ba19a283715bfa3a
1) avoid stale data 2) fix backspace issue

more specifically:
    1 - if a response from the server is not the response to the most
        recent request issued by the AutoSuggestStore, don't use it
    2 - when the search query is empty, empty the store (previously we
        knew not to talk to the server but didn't empty the store)

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/web/js/dojo/openils/AutoSuggestStore.js