1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-16 15:10:10 -05:00

added error handling in lawnchair dao

This commit is contained in:
Tankred Hase 2013-05-23 23:12:38 +02:00
parent bdab0e19c1
commit 5c1b89dfc9

View File

@ -6,7 +6,11 @@ app.dao.LawnchairDAO = function(window) {
var db = new Lawnchair({ var db = new Lawnchair({
name: 'data-store' name: 'data-store'
}, function() {}); }, function(lc) {
if (!lc) {
throw new Error('Lawnchair init failed!');
}
});
/** /**
* Create or update an object * Create or update an object