bigbluebutton-Github/labs/bbb-html5-client/public/js/app.coffee
Leonardo Crauss Daronco 79d88135ab More options in the authentication object stored in the client
Authentication object is stored during the session, with data (currently with meetingID and username) sent by the server.
2012-12-10 23:51:01 -02:00

35 lines
739 B
CoffeeScript

define [
'jquery',
'underscore',
'backbone',
'raphael',
'globals',
'cs!router',
'cs!models/connection',
'jquery.mousewheel',
'jquery.autosize',
'jquery.form',
'jquery.ui'
], ($, _, Backbone, Raphael, globals, Router, ConnectionModel) ->
globals.router = {}
globals.connection = {}
initialize = ->
# Authentication object, set when the user is authorized in
globals.currentAuth = null
# Default application router
globals.router = new Router()
Backbone.history.start()
# Default connection (websocket)
globals.connection = new ConnectionModel()
# Start at /login
globals.router.navigate "/login", {trigger: true, replace: true}
return {
initialize: initialize
}