 
   set: (locale) =>
     @map = {}
-    @ajax(
+    App.Com.ajax(
+      id:    'i18n-set-' + locale,
       type:   'GET',
       url:    '/translations/lang/' + locale,
       async:  false,

    new App.Navigation( el: @el.find('#navigation') );

    # check if session already exists/try to get session data from server
    auth = new App.Auth
    auth.loginCheck()

    # start notify controller
    new App.Notify( el: @el.find('#notify') );

console.log '1112222', Config2.get( 'a')
###

class App.Com
  _instance = undefined # Must be declared here to force the closure on the class
  @ajax: (args) -> # Must be a static method
    if _instance == undefined
      _instance ?= new _Singleton

    _instance.ajax(args)
    _instance

# The actual Singleton class
class _Singleton
  defaults:
    contentType: 'application/json'
    dataType: 'json'
