Class ConfigOverloader

Class used to overload theConfig with the contains of theTravelNotesConfig.json file and finally freeze the config.

See theConfig for the one and only one instance of this class

Source : file data/ConfigOverloader.js at line 37

Constructor

new ConfigOverloader ( )

The constructor

Source : file data/ConfigOverloader.js at line 128

Public methods

overload ( source )

Overload the default config with another config. The config can be overloaded only once!

Source : file data/ConfigOverloader.js at line 138

Parameters

Name Type Description
source JsonObject

The object from witch theConfig will be overloaded ( = the contains of the TravelNotesConfig.json file )

Private methods

#copyObjectTo ( source, target )

Copy the properties between two objects

This method:

Source : file data/ConfigOverloader.js at line 58

Parameters

Name Type Description
source Object

The source object

target Object

The target object

#freeze ( object )

Freeze an object recursively

Source : file data/ConfigOverloader.js at line 115

Parameters

Name Type Description
object Object

The object to freeze