bugfix fetching an empty list in ie and firefox

This commit is contained in:
Tankred Hase 2013-03-19 16:47:55 +01:00
parent 3fbcc26035
commit 1219f9ecab
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@ app.dao.LawnchairDAO = function(window) {
matchingKeys = [];
}
// return if there are no matching keys
if (matchingKeys.length === 0) {
callback(list);
return;
}
// get matching objects from data-store
self.get(matchingKeys, function(matchingList) {
for (i = 0; i < matchingList.length; i++) {