   constructor: (@el) ->
     super
 
-    @text            = $('.text', @el).first()
-    @textManualSplit = $('.text.manual-split', @el)
-    @textToCollpase  = if @textManualSplit.length then @textManualSplit else @text
-    @collapseToggle  = $('.toggle-wrapper svg', @el)
-    @modalToggle     = $('> [data-toggle="modal"]', @inner)
-    @modalDismiss    = $("[data-dismiss][data-target='#{@modalToggle.data('target')}']")
-    @modal           = $(@modalToggle.data('target'))
+    @text                = $('.text', @el).first()
+    @textManualSplit     = $('.text.manual-split', @el)
+    @textToCollapse      = if @textManualSplit.length then @textManualSplit else @text
+    @collapseToggle      = $('.toggle-wrapper svg', @el)
+    @modalToggle         = $('> [data-toggle="modal"]', @inner)
+    @modalDismiss        = $("[data-dismiss][data-target='#{@modalToggle.data('target')}']")
+    @modal               = $(@modalToggle.data('target'))
+    @textToCollapse.open = false
 
     @modal.on 'shown.bs.modal',                  => @modalDismiss.show()
     @modal.on 'hide.bs.modal',                   => @modalDismiss.hide()
     @modalDismiss.on 'touchstart click',         => @modal.modal('hide')
     @collapseToggle.on 'click',                  => @onCollapseToggleClick()
-    @textToCollpase.on $.support.transition.end, => @textToCollpase.trigger('update.dot')
+    @textToCollapse.on $.support.transition.end, => @textToCollapse.trigger('update.dot')
 
-    @text.height 'auto' if @text != @textToCollpases
+    @text.height 'auto' if @text != @textToCollapses
 
-    @textToCollpase.dotdotdot(watch: 'window')
+    @textToCollapse.dotdotdot(watch: 'window')
     @fitText()
 
     setTimeout (=>


    diff = collapseOrModalToggle.offset().top - @text.offset().top - 30

    if @textToCollpase == @textManualSplit
      return 0
    else
      return if diff < 160 then 160 else diff

  refresh: ->
    @closeCollapse()
    @fitText()
    @textToCollapse.css('opacity', 0)
    setTimeout (=> @textToCollapse.css('opacity', 1)), 700

  fitText: =>
    @textCollapsedHeight = @computeTextCollapseHeight()
    @textToCollapse.css height: @textCollapsedHeight

    setTimeout (=> @textToCollapse.trigger 'update.dot'), 700 # Fallback 1
    setTimeout (=> @textToCollapse.trigger 'update.dot'), 1500 # Fallback 2

  computeTextCollapseHeight: ->
    @textToCollapse.css 'height', 0

    collapseOrModalToggle =
      if @collapseToggle.is(':visible')
