(function () { var dataModel = { "UserLoginLogoutNavigation4": {}, "bannersAsJson": { banners: [] }, "topicIndexModuleTemplate": "", "topicIndexCategorySlug": "" }; this.ModelInitializer = function () { this.Get = function get(name) { if (dataModel[name] != undefined) { return dataModel[name]; } console.log("not found model name : " + name); }; this.Set = function set(name, model) { if (dataModel[name] != undefined) { dataModel[name] = model; return true; } console.log("not found model name : " + name); }; }; })();