1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 23:08:50 -05:00

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

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++) {