var Badoo = Badoo || {}; (function (B) { // Local references to other modules and their properties var Session = B.Session; var History = B.History; var AppView = B.Views.App; var MESSAGES_FOLDER = B.Models.Folders.TYPES.MESSAGES; // App controller initialization var App = B.Controllers.App = Badoo.Controller.extend({ init: function () { // Initialize some views and controllers var controller = new B.Controllers.Landing(); var view = new B.Views.Alert(); // Write some cookies Badoo.Utils.Cookie.set('test', 1000 * 42); } }); // Make it instanceable var instance; App.getInstance = function () { return instance || (instance = new App('app')); }; return App; })(Badoo);
Convert
Revert