 
         if window.initalarms?
             @alarms.reset window.initalarms
+            delete window.initalarms
+
+        if window.initevents?
             @events.reset window.initevents
-            delete window.initalarms
             delete window.initevents
 
         Backbone.history.start()

module.exports =

    initialize: ->

        @locale = window.locale
        delete window.locale


        @polyglot.extend locales
        window.t = @polyglot.t.bind @polyglot
        Date.setLocale @locale

        Router = require 'router'
        SocketListener = require '../lib/socket_listener'
