reverts the changes I didn't like/understand

This commit is contained in:
Peter 'Pita' Martischka 2011-07-07 18:09:08 +01:00
parent 7cf1a50fff
commit 822d854882
2 changed files with 2 additions and 11 deletions

View file

@ -28,7 +28,7 @@ var db = new ueberDB.database(settings.dbType, settings.dbSettings);
/**
* The UeberDB Object that provides the database functions
*/
exports.db = db;
exports.db = null;
/**
* Initalizes the database with the settings provided by the settings module
@ -49,6 +49,7 @@ exports.init = function(callback)
//everything ok
else
{
exports.db = db;
callback(null);
}
});