Fixed usage if no translations has been loaded till now.

This commit is contained in:
Martin Edenhofer 2012-11-26 06:05:26 +01:00
parent c7de6dfcc5
commit 13cf7bf535

View file

@ -31,6 +31,7 @@ class _Singleton extends Spine.Module
constructor: ->
@map = {}
@timestampFormat = 'yyyy-mm-dd HH:MM'
# observe if text has been translated
$('body')
@ -80,7 +81,6 @@ class _Singleton extends Spine.Module
set: ( locale ) ->
@locale = locale
@timestampFormat = 'yyyy-mm-dd HH:MM'
@map = {}
App.Com.ajax(
id: 'i18n-set-' + locale,