     @loader.on "viewAppended", -> loaderView.show()
     @container.addSubView @loader
 
-  isJoinedASession: ->
-    return  @getOptions().joinedASession
+  isJoinedASession: -> return @getOptions().joinedASession
 
   joinSession: (newOptions) ->
     options                = @getOptions()

      if isOldSession
        @sessionData  = keys
        @createPanel()
        @userRef = @workspaceRef.child("users").child KD.nick()
        @userRef.set "online"
        @userRef.onDisconnect().set "offline"
      else
        @createPanel()
        @workspaceRef.set "keys": @sessionData
        @userRef = @workspaceRef.child("users").child KD.nick()
        @userRef.set "online"
        @userRef.onDisconnect().set "offline"


class CollaborativeWorkspace extends Workspace

  init: ->
    @nickname    = KD.nick()
    @sessionData = []
    @users       = {}
    @createRemoteInstance()
