       return acc
     , []
 
-  getFormValues:->
-    @$().serializeArray()
-    .map ({name})->
+
+  getFormValues: ->
+
+    @$().serializeArray().map ({ name }) ->
       [facet, role, permission] = name.split '|'
       module = facet.split('-')[1]
       {module, role, permission}
 
-  ['list','reducedList','tree'].forEach (method)=>
-    @::[method] =-> @getPermissions method
-
-  getPermissions:(structure='reducedList')->
+
+  ['list','reducedList','tree'].forEach (method) =>
+    @::[method] = -> @getPermissions method
+
+
+  getPermissions: (structure = 'reducedList') ->
+
     values = @getFormValues()
     switch structure
       when 'reducedList'  then return createReducedList values

      when 'tree'         then return createTree values
      else throw new Error "Unknown structure #{structure}"

  getPermissionsOfRole: (role)->
    allValues = @list()
    selectedRoleValues = []
    selectedRoleValues.push permission for permission in allValues when permission.role is role

            return yes
        return no


  cascadeFormElements = (set, roles, module, permission, roleCount = 0) ->

    [current,remainder...] = roles
    cascadeData = {}
