﻿/**
 * jQueyry Nestle Menu Nutritional Planner settings plugin.
 *
 * This stores URLs and strings for use in the application.
 */
(function($) {

    // Reference to nmnpSettings object.
    var self = null;

    /////////////////////////////////////////////////////////////
    // NMNP Settings object with public variables and functions.
    /////////////////////////////////////////////////////////////

    $.nmnpSettings = {

        /**
        * INIT.
        *
        * Add the settings to this.
        */
        init: function(config_strings, config_urls) {
            // Save a reference to this object, to prevent confusion with "this" keyword.
            // All the functions of this object should be called as self.functionName().
            self = this;

            // Extend default options with those provided.
            self.strings = $.extend(self.strings, config_strings);
            self.urls = $.extend(self.urls, config_urls);
        }, // init

        // Strings used in application.
        // @todo: Move the modal strings in here.
        strings: {},

        // URLs to use in the application.
        urls: {}
    };

})(jQuery);

