SettingsManager AMD Example

Example AMD use of the SettingsManager library

Load the SettingsManager library using require:

require(
    // The path to the SettingsManager.js file
    ['../../scripts/SettingsManager.js'],
    // A callback which is executed with the SettingsManager instance
    function onLoaded(SettingsManager) {
        var settingsManager = new SettingsManager.SettingsManager();
        /* code here */
    }
);