Lungo.App.js 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Lungo sandbox APP initialization
  3. *
  4. * @namespace LUNGO
  5. * @class App
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. * @author Guillermo Pascual <pasku@tapquo.com> || @pasku1
  9. */
  10. LUNGO.App = (function(lng, undefined) {
  11. var default_config = {
  12. id: 1,
  13. name: 'lungo_app',
  14. version: 1.0,
  15. icon: ''
  16. };
  17. /**
  18. * Initializes all LungoJS system: setting properties for the application,
  19. * subscribing to automatic events, initializing sections & articles
  20. * and stating the title.
  21. *
  22. * @method init
  23. *
  24. * @param {object} Application configuration properties
  25. */
  26. var init = function(app_config) {
  27. default_config = lng.Core.mix(default_config, app_config);
  28. lng.Boot();
  29. };
  30. var get = function(property) {
  31. return default_config[property];
  32. };
  33. return {
  34. init: init,
  35. get: get
  36. };
  37. })(LUNGO);