1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -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({
name: 'data-store'
}, function() {});
}, function(lc) {
if (!lc) {
throw new Error('Lawnchair init failed!');
}
});
/**
* Create or update an object