 #     dragbars
 #     handles
 class RotateContainerView extends Backbone.View
-
   className: 'rotateContainer'
+
   initialize: ->
     @handlerContainer = new HandlerContainerView
     @display = new DisplayContainerView
 
   # @chainable
   render: ->
-    @$el
-      .append(@display.render().el)
-      .append(@handlerContainer.render().el)
+    @$el.append @display.render().el, @handlerContainer.render().el
     @
 
 
 # display container that holds the content and the borders of the
 # content
 class DisplayContainerView extends Backbone.View
-
   className: 'displayContainer'
+
   initialize: ->
-    @borders = for card, i in Cards.slice 0, 4
+    @borders = for card, i in Cards[..3]
       new BorderView card: card
 
   # @chainable

    dragbar.assignCursor(@_state.angle.rad) for i, dragbar of @rCont.handlerContainer.dragbars

  listenToDragStart: ->
    #@trigger 'drag:start', {at: at, card: @options.card}
    for handle in @rCont.handlerContainer.handles
      @listenTo handle, 'drag:start', (data)=>
        @trigger 'start:resize'


  # @chainable
  render: ->
    @$el.append @tracker.render().el
    @$el.append dragbar.render().el for dragbar in @dragbars
    @$el.append handle.render().el for handle in @handles
    @$el.append @rotateHandle.render().el
    @


class SelectionView extends Backbone.View
  events:
    mousedown: 'start'

  # @params options {object}
  # @params options.card {srting}
  initialize: ->
    @card = @options.card
    @indexCard = _.indexOf(ordCards, @card)
    @$el.css cursor: @card + '-resize'

  start: (event)->
