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:
parent
3fbcc26035
commit
1219f9ecab
@ -72,6 +72,12 @@ app.dao.LawnchairDAO = function(window) {
|
|||||||
matchingKeys = [];
|
matchingKeys = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// return if there are no matching keys
|
||||||
|
if (matchingKeys.length === 0) {
|
||||||
|
callback(list);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// get matching objects from data-store
|
// get matching objects from data-store
|
||||||
self.get(matchingKeys, function(matchingList) {
|
self.get(matchingKeys, function(matchingList) {
|
||||||
for (i = 0; i < matchingList.length; i++) {
|
for (i = 0; i < matchingList.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user