bugfix fetching an empty list in ie and firefox

dev/WO-783
Tankred Hase 10 years ago
parent 3fbcc26035
commit 1219f9ecab

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

Loading…
Cancel
Save