clean up and fix some errors

This commit is contained in:
Philipp Kunz
2015-12-02 15:23:48 +01:00
parent 582afc0361
commit 491f22ffca
5 changed files with 85 additions and 81 deletions

View File

@@ -8,24 +8,9 @@ var plugins = {
}
var smartenv:any = {}; //create smartenv object
smartenv.getEnv = SmartenvEnvironment.init();
SmartenvEnvironment.init(smartenv);
smartenv.obs = SmartenvObjectStorage.init();
/* ----------------------------------------- *
* ----- print info ------------------------ *
* ----------------------------------------- */
smartenv.printEnv = function() {
if (smartenv.getEnv().isNode) {
var smartenvVersion = require("./package.json").version;
plugins.beautylog.log("node version is " + smartenv.getEnv().nodeVersion + " and smartenv version is " + smartenvVersion);
} else {
plugins.beautylog.log("browser is " + smartenv.getEnv().userAgent)
}
plugins.beautylog.log("the smartenv registration store currently holds the following properties:");
console.log(Object.getOwnPropertyNames(smartenv.obs.getComplete).sort());
};
module.exports = smartenv;