menu fixes with min lines of code and standard menus - WORKING-
This commit is contained in:
7
dependencies/measurement/measurement.js
vendored
7
dependencies/measurement/measurement.js
vendored
@@ -39,14 +39,15 @@
|
||||
*/
|
||||
|
||||
const EventEmitter = require('events');
|
||||
const {logger,configUtils} = require('generalFunctions');
|
||||
const defaultConfig = require('./measurementConfig.json');
|
||||
const {logger,configUtils,configManager} = require('generalFunctions');
|
||||
|
||||
class Measurement {
|
||||
constructor(config={}) {
|
||||
|
||||
this.emitter = new EventEmitter(); // Own EventEmitter
|
||||
this.configUtils = new configUtils(defaultConfig);
|
||||
this.configManager = new configManager();
|
||||
this.defaultConfig = this.configManager.getConfig('measurement');
|
||||
this.configUtils = new configUtils(this.defaultConfig);
|
||||
this.config = this.configUtils.initConfig(config);
|
||||
|
||||
// Init after config is set
|
||||
|
||||
Reference in New Issue
Block a user