removed instances of locales from app and auth coffeescript files

This commit is contained in:
Justine Arreche 2014-01-13 15:03:18 -05:00
parent 67b970015f
commit 35e7fc4f55
2 changed files with 1 additions and 6 deletions

View File

@ -147,8 +147,6 @@ unless window.TravisApplication
ready: ->
location.href = location.href.replace('#!/', '') if location.hash.slice(0, 2) == '#!'
I18n.fallbacks = true
@setLocale 'locale', @get('defaultLocale')
currentDate: ->
new Date()

View File

@ -6,11 +6,9 @@
window.addEventListener('message', (e) => @receiveMessage(e))
signOut: ->
Travis.storage.removeItem('travis.locale')
Travis.storage.removeItem('travis.user')
Travis.storage.removeItem('travis.token')
Travis.sessionStorage.clear()
Travis.setLocale Travis.default_locale
@set('state', 'signed-out')
@set('user', undefined)
if user = Travis.__container__.lookup('controller:currentUser').get('content')
@ -67,7 +65,6 @@
Travis.__container__.lookup('controller:currentUser').set('content', user)
@set('state', 'signed-in')
Travis.setLocale(data.user.locale || Travis.default_locale)
Travis.trigger('user:signed_in', data.user)
if router = Travis.__container__.lookup('router:main')
Ember.run.next =>